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

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

Issue 10260021: Disable kDesktopNotificationPosition for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer diff Created 8 years, 7 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 | no next file » | no next file with comments »
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 03e118e4f7db6e8fc5ffd4b9d51270b9e73d473a..58c005e083bd86bf41b30095599e845e3956c59a 100644
--- a/chrome/browser/notifications/notification_prefs_manager.cc
+++ b/chrome/browser/notifications/notification_prefs_manager.cc
@@ -11,4 +11,10 @@
void NotificationPrefsManager::RegisterPrefs(PrefService* prefs) {
prefs->RegisterIntegerPref(prefs::kDesktopNotificationPosition,
BalloonCollection::DEFAULT_POSITION);
+#if defined(OS_CHROMEOS)
+ // Option menu for changing desktop notification position on ChromeOS is
+ // disabled. Force preference to default.
+ prefs->SetInteger(prefs::kDesktopNotificationPosition,
+ BalloonCollection::DEFAULT_POSITION);
+#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698