Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2467)

Unified Diff: chrome/browser/background/background_mode_manager_win.cc

Issue 1387383004: Plumb NotifierId to status icon balloons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notif_cleanup
Patch Set: Rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..0b04ed778b0f2761e04f812bf89ed8e510ffd27f 100644
--- a/chrome/browser/background/background_mode_manager_win.cc
+++ b/chrome/browser/background/background_mode_manager_win.cc
@@ -17,9 +17,12 @@
#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;
+const char kAppInstalledNotifierId[] = "background-mode.app-installed";
+
void BackgroundModeManager::EnableLaunchOnStartup(bool should_launch) {
// This functionality is only defined for default profile, currently.
if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserDataDir))
@@ -41,7 +44,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() {

Powered by Google App Engine
This is Rietveld 408576698