Browse Source

chore: Browser::SetAppUserModelID is Windows only (#28909)

Milan Burda 4 years ago
parent
commit
0f898b2260
3 changed files with 2 additions and 4 deletions
  1. 2 0
      shell/browser/browser.h
  2. 0 2
      shell/browser/browser_linux.cc
  3. 0 2
      shell/browser/browser_mac.mm

+ 2 - 0
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,

+ 0 - 2
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);

+ 0 - 2
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<int> count) {
   DockSetBadgeText(!count.has_value() || count.value() != 0
                        ? badging::BadgeManager::GetBadgeString(count)