diff --git a/shell/browser/browser.h b/shell/browser/browser.h index cd96d4ea1b26..9ff26a07c66a 100755 --- a/shell/browser/browser.h +++ b/shell/browser/browser.h @@ -83,8 +83,10 @@ class Browser : public WindowListObserver { // Clear the recent documents list. void ClearRecentDocuments(); +#if defined(OS_WIN) // Set the application user model ID. void SetAppUserModelID(const std::wstring& name); +#endif // Remove the default protocol handler registry key bool RemoveAsDefaultProtocolClient(const std::string& protocol, diff --git a/shell/browser/browser_linux.cc b/shell/browser/browser_linux.cc index 6243db893033..68af2f01a81e 100644 --- a/shell/browser/browser_linux.cc +++ b/shell/browser/browser_linux.cc @@ -88,8 +88,6 @@ void Browser::AddRecentDocument(const base::FilePath& path) {} void Browser::ClearRecentDocuments() {} -void Browser::SetAppUserModelID(const std::wstring& name) {} - bool Browser::SetAsDefaultProtocolClient(const std::string& protocol, gin::Arguments* args) { return SetDefaultWebClient(protocol); diff --git a/shell/browser/browser_mac.mm b/shell/browser/browser_mac.mm index 86d1be74a381..55596891b48a 100644 --- a/shell/browser/browser_mac.mm +++ b/shell/browser/browser_mac.mm @@ -218,8 +218,6 @@ std::u16string Browser::GetApplicationNameForProtocol(const GURL& url) { return app_display_name; } -void Browser::SetAppUserModelID(const std::wstring& name) {} - bool Browser::SetBadgeCount(base::Optional count) { DockSetBadgeText(!count.has_value() || count.value() != 0 ? badging::BadgeManager::GetBadgeString(count)