Index: chrome/browser/background/background_mode_manager_win.cc |
diff --git a/chrome/browser/background/background_mode_manager_win.cc b/chrome/browser/background/background_mode_manager_win.cc |
index fa85eb71f5414232feb6c98e9f6105784ee5c9a1..3339db0d33f889e42a11ceab5b9beb5a6f0763e1 100644 |
--- a/chrome/browser/background/background_mode_manager_win.cc |
+++ b/chrome/browser/background/background_mode_manager_win.cc |
@@ -17,9 +17,16 @@ |
#include "content/public/browser/browser_thread.h" |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/gfx/image/image_skia.h" |
+#include "ui/message_center/notifier_settings.h" |
using content::BrowserThread; |
+namespace { |
+ |
+const char kAppInstalledNotifierId[] = "background-mode.app-installed"; |
Peter Beverloo
2015/10/10 16:35:27
nit: no need for the anonymous namespace here, con
johnme
2015/10/12 14:34:09
Done.
|
+ |
+} // namespace |
+ |
void BackgroundModeManager::EnableLaunchOnStartup(bool should_launch) { |
// This functionality is only defined for default profile, currently. |
if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserDataDir)) |
@@ -41,7 +48,9 @@ void BackgroundModeManager::DisplayClientInstalledNotification( |
l10n_util::GetStringUTF16(IDS_BACKGROUND_APP_INSTALLED_BALLOON_TITLE), |
l10n_util::GetStringFUTF16(IDS_BACKGROUND_APP_INSTALLED_BALLOON_BODY, |
name, |
- l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
+ l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)), |
+ message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT, |
+ kAppInstalledNotifierId)); |
} |
base::string16 BackgroundModeManager::GetPreferencesMenuLabel() { |