diff --git a/shell/browser/browser.h b/shell/browser/browser.h index 4768196c0a62..136900881a35 100755 --- a/shell/browser/browser.h +++ b/shell/browser/browser.h @@ -84,7 +84,7 @@ class Browser : public WindowListObserver { void ClearRecentDocuments(); // Set the application user model ID. - void SetAppUserModelID(const std::u16string& name); + void SetAppUserModelID(const std::wstring& name); // 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 8c5e59e427dc..6243db893033 100644 --- a/shell/browser/browser_linux.cc +++ b/shell/browser/browser_linux.cc @@ -88,7 +88,7 @@ void Browser::AddRecentDocument(const base::FilePath& path) {} void Browser::ClearRecentDocuments() {} -void Browser::SetAppUserModelID(const std::u16string& name) {} +void Browser::SetAppUserModelID(const std::wstring& name) {} bool Browser::SetAsDefaultProtocolClient(const std::string& protocol, gin::Arguments* args) { diff --git a/shell/browser/browser_mac.mm b/shell/browser/browser_mac.mm index 97daa1ded023..86d1be74a381 100644 --- a/shell/browser/browser_mac.mm +++ b/shell/browser/browser_mac.mm @@ -218,7 +218,7 @@ std::u16string Browser::GetApplicationNameForProtocol(const GURL& url) { return app_display_name; } -void Browser::SetAppUserModelID(const std::u16string& name) {} +void Browser::SetAppUserModelID(const std::wstring& name) {} bool Browser::SetBadgeCount(base::Optional count) { DockSetBadgeText(!count.has_value() || count.value() != 0 diff --git a/shell/browser/browser_win.cc b/shell/browser/browser_win.cc index 04519a20d447..0db6ab988d9c 100755 --- a/shell/browser/browser_win.cc +++ b/shell/browser/browser_win.cc @@ -393,7 +393,7 @@ void Browser::ClearRecentDocuments() { SHAddToRecentDocs(SHARD_APPIDINFO, nullptr); } -void Browser::SetAppUserModelID(const std::u16string& name) { +void Browser::SetAppUserModelID(const std::wstring& name) { electron::SetAppUserModelID(name); }