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

This commit is contained in:
Milan Burda 2021-05-03 18:13:19 +02:00 committed by GitHub
parent b0167b269a
commit 0f898b2260
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View file

@ -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,

View file

@ -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);

View file

@ -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)