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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm

Issue 6248026: Rename Real* to Double* in values.* and dependent files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More renames Created 9 years, 11 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/ui/cocoa/extensions/browser_actions_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
index 3cf243336023b35c080dcd4dae887f195ce7ed97..e0d0a0950abe3bab5aebdcdbf0fbd13e81b60127 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
@@ -360,7 +360,7 @@ class ExtensionServiceObserverBridge : public NotificationObserver,
// Migration code to the new VisibleIconCount pref.
// TODO(mpcomplete): remove this at some point.
double predefinedWidth =
- profile_->GetPrefs()->GetReal(prefs::kBrowserActionContainerWidth);
+ profile_->GetPrefs()->GetDouble(prefs::kBrowserActionContainerWidth);
if (predefinedWidth != 0) {
int iconWidth = kBrowserActionWidth + kBrowserActionButtonPadding;
int extraWidth = kChevronWidth;
@@ -419,7 +419,7 @@ class ExtensionServiceObserverBridge : public NotificationObserver,
}
+ (void)registerUserPrefs:(PrefService*)prefs {
- prefs->RegisterRealPref(prefs::kBrowserActionContainerWidth, 0);
+ prefs->RegisterDoublePref(prefs::kBrowserActionContainerWidth, 0);
}
#pragma mark -

Powered by Google App Engine
This is Rietveld 408576698