|
@@ -46,7 +46,8 @@ void Browser::ClearRecentDocuments() {
|
|
|
[[NSDocumentController sharedDocumentController] clearRecentDocuments:nil];
|
|
|
}
|
|
|
|
|
|
-bool Browser::RemoveAsDefaultProtocolClient(const std::string& protocol, mate::Arguments* args) {
|
|
|
+bool Browser::RemoveAsDefaultProtocolClient(const std::string& protocol,
|
|
|
+ mate::Arguments* args) {
|
|
|
NSString* identifier = [base::mac::MainBundle() bundleIdentifier];
|
|
|
if (!identifier)
|
|
|
return false;
|
|
@@ -74,7 +75,8 @@ bool Browser::RemoveAsDefaultProtocolClient(const std::string& protocol, mate::A
|
|
|
return return_code == noErr;
|
|
|
}
|
|
|
|
|
|
-bool Browser::SetAsDefaultProtocolClient(const std::string& protocol, mate::Arguments* args) {
|
|
|
+bool Browser::SetAsDefaultProtocolClient(const std::string& protocol,
|
|
|
+ mate::Arguments* args) {
|
|
|
if (protocol.empty())
|
|
|
return false;
|
|
|
|
|
@@ -89,7 +91,8 @@ bool Browser::SetAsDefaultProtocolClient(const std::string& protocol, mate::Argu
|
|
|
return return_code == noErr;
|
|
|
}
|
|
|
|
|
|
-bool Browser::IsDefaultProtocolClient(const std::string& protocol, mate::Arguments* args) {
|
|
|
+bool Browser::IsDefaultProtocolClient(const std::string& protocol,
|
|
|
+ mate::Arguments* args) {
|
|
|
if (protocol.empty())
|
|
|
return false;
|
|
|
|