From c7468278dfa635037b726c6b6218a3268d3f657b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 14 Apr 2015 16:18:57 +0800 Subject: [PATCH] Change the window class names --- atom/browser/native_window.cc | 2 +- atom/browser/ui/file_dialog_win.cc | 2 +- atom/browser/ui/views/menu_bar.cc | 2 +- atom/browser/ui/win/notify_icon_host.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index eb1fbe82..739f1b3a 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -144,7 +144,7 @@ NativeWindow::NativeWindow(content::WebContents* web_contents, // Override the user agent to contain application and atom-shell's version. Browser* browser = Browser::Get(); std::string product_name = base::StringPrintf( - "%s/%s Chrome/%s AtomShell/" ATOM_VERSION_STRING, + "%s/%s Chrome/%s " ATOM_PRODUCT_NAME "/" ATOM_VERSION_STRING, RemoveWhitespace(browser->GetName()).c_str(), browser->GetVersion().c_str(), CHROME_VERSION_STRING); diff --git a/atom/browser/ui/file_dialog_win.cc b/atom/browser/ui/file_dialog_win.cc index 727d87a4..4656557b 100644 --- a/atom/browser/ui/file_dialog_win.cc +++ b/atom/browser/ui/file_dialog_win.cc @@ -120,7 +120,7 @@ struct RunState { }; bool CreateDialogThread(RunState* run_state) { - base::Thread* thread = new base::Thread("AtomShell_FileDialogThread"); + base::Thread* thread = new base::Thread(ATOM_PRODUCT_NAME "FileDialogThread"); thread->init_com_with_mta(false); if (!thread->Start()) return false; diff --git a/atom/browser/ui/views/menu_bar.cc b/atom/browser/ui/views/menu_bar.cc index a0a93ed9..d3059a50 100644 --- a/atom/browser/ui/views/menu_bar.cc +++ b/atom/browser/ui/views/menu_bar.cc @@ -25,7 +25,7 @@ namespace atom { namespace { -const char kViewClassName[] = "AtomMenuBar"; +const char kViewClassName[] = "ElectronMenuBar"; // Default color of the menu bar. const SkColor kDefaultColor = SkColorSetARGB(255, 233, 233, 233); diff --git a/atom/browser/ui/win/notify_icon_host.cc b/atom/browser/ui/win/notify_icon_host.cc index 14dcf6d6..4aac629f 100644 --- a/atom/browser/ui/win/notify_icon_host.cc +++ b/atom/browser/ui/win/notify_icon_host.cc @@ -24,7 +24,7 @@ const UINT kNotifyIconMessage = WM_APP + 1; // |kBaseIconId| is 2 to avoid conflicts with plugins that hard-code id 1. const UINT kBaseIconId = 2; -const wchar_t kNotifyIconHostWindowClass[] = L"AtomShell_NotifyIconHostWindow"; +const wchar_t kNotifyIconHostWindowClass[] = L"Electron_NotifyIconHostWindow"; } // namespace -- 2.43.0