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

Unified Diff: chrome/browser/notifications/notification_prefs_manager.cc

Issue 110693004: Moves the notification icon out of the status area overflow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/status_icons/status_icon.h » ('j') | chrome/browser/status_icons/status_icon.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_prefs_manager.cc
diff --git a/chrome/browser/notifications/notification_prefs_manager.cc b/chrome/browser/notifications/notification_prefs_manager.cc
index a77eb63f2ee0c7c61cb1510da5672dddc3d1c0b8..93db523a7599650963ac842dfe445c5b7a28632a 100644
--- a/chrome/browser/notifications/notification_prefs_manager.cc
+++ b/chrome/browser/notifications/notification_prefs_manager.cc
@@ -1,30 +1,31 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/notifications/notification_prefs_manager.h"
-
-#include "base/prefs/pref_registry_simple.h"
-#include "base/prefs/pref_service.h"
-#include "chrome/common/pref_names.h"
-
-NotificationPrefsManager::NotificationPrefsManager(PrefService* prefs) {
-#if defined(OS_CHROMEOS)
- static bool have_cleared = false;
-
- if (!have_cleared) {
- // Option menu for changing desktop notification position on ChromeOS is
- // disabled. Force preference to default.
- prefs->ClearPref(prefs::kDesktopNotificationPosition);
- have_cleared = true;
- }
-#endif
-}
-
-// static
-void NotificationPrefsManager::RegisterPrefs(PrefRegistrySimple* registry) {
- registry->RegisterIntegerPref(prefs::kDesktopNotificationPosition,
- BalloonCollection::DEFAULT_POSITION);
- registry->RegisterBooleanPref(prefs::kMessageCenterShowedFirstRunBalloon,
- false);
-}
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/notifications/notification_prefs_manager.h"
+
+#include "base/prefs/pref_registry_simple.h"
+#include "base/prefs/pref_service.h"
+#include "chrome/common/pref_names.h"
+
+NotificationPrefsManager::NotificationPrefsManager(PrefService* prefs) {
+#if defined(OS_CHROMEOS)
+ static bool have_cleared = false;
+
+ if (!have_cleared) {
+ // Option menu for changing desktop notification position on ChromeOS is
+ // disabled. Force preference to default.
+ prefs->ClearPref(prefs::kDesktopNotificationPosition);
+ have_cleared = true;
+ }
+#endif
+}
+
+// static
+void NotificationPrefsManager::RegisterPrefs(PrefRegistrySimple* registry) {
+ registry->RegisterIntegerPref(prefs::kDesktopNotificationPosition,
+ BalloonCollection::DEFAULT_POSITION);
+ registry->RegisterBooleanPref(prefs::kMessageCenterShowedFirstRunBalloon,
+ false);
+ registry->RegisterBooleanPref(prefs::kMessageCenterForcedOnTaskbar, false);
+}
« no previous file with comments | « no previous file | chrome/browser/status_icons/status_icon.h » ('j') | chrome/browser/status_icons/status_icon.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698