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

Unified Diff: chrome/browser/host_zoom_map.cc

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/host_zoom_map.cc
diff --git a/chrome/browser/host_zoom_map.cc b/chrome/browser/host_zoom_map.cc
index 598450e3bcfd3766db240c810c81df352cdc5f24..3dc257b677530b112700293ccdc0a60c1e68c1bc 100644
--- a/chrome/browser/host_zoom_map.cc
+++ b/chrome/browser/host_zoom_map.cc
@@ -30,7 +30,7 @@ HostZoomMap::HostZoomMap(Profile* profile)
updating_preferences_(false) {
Load();
default_zoom_level_ =
- profile_->GetPrefs()->GetReal(prefs::kDefaultZoomLevel);
+ profile_->GetPrefs()->GetDouble(prefs::kDefaultZoomLevel);
registrar_.Add(this, NotificationType::PROFILE_DESTROYED,
Source<Profile>(profile));
// Don't observe pref changes (e.g. from sync) in Incognito; once we create
@@ -62,7 +62,7 @@ void HostZoomMap::Load() {
const std::string& host(*i);
double zoom_level = 0;
- bool success = host_zoom_dictionary->GetRealWithoutPathExpansion(
+ bool success = host_zoom_dictionary->GetDoubleWithoutPathExpansion(
host, &zoom_level);
if (!success) {
// The data used to be stored as ints, so try that.
@@ -133,7 +133,7 @@ void HostZoomMap::SetZoomLevel(const GURL& url, double level) {
host_zoom_dictionary->RemoveWithoutPathExpansion(host, NULL);
} else {
host_zoom_dictionary->SetWithoutPathExpansion(
- host, Value::CreateRealValue(level));
+ host, Value::CreateDoubleValue(level));
}
}
updating_preferences_ = false;
@@ -245,7 +245,7 @@ void HostZoomMap::Observe(
Load();
else if (prefs::kDefaultZoomLevel == *name) {
default_zoom_level_ =
- profile_->GetPrefs()->GetReal(prefs::kDefaultZoomLevel);
+ profile_->GetPrefs()->GetDouble(prefs::kDefaultZoomLevel);
}
}
break;

Powered by Google App Engine
This is Rietveld 408576698