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

Unified Diff: chrome/browser/chromeos/cros_settings.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/chromeos/cros_settings.cc
diff --git a/chrome/browser/chromeos/cros_settings.cc b/chrome/browser/chromeos/cros_settings.cc
index 59cdb4d6e99fbd6ba95fc115e56aec852a9c5c31..419479bd70b8dbcbca2b59bc9092094533ba93e6 100644
--- a/chrome/browser/chromeos/cros_settings.cc
+++ b/chrome/browser/chromeos/cros_settings.cc
@@ -63,9 +63,9 @@ void CrosSettings::SetInteger(const std::string& path, int in_value) {
Set(path, Value::CreateIntegerValue(in_value));
}
-void CrosSettings::SetReal(const std::string& path, double in_value) {
+void CrosSettings::SetDouble(const std::string& path, double in_value) {
DCHECK(CalledOnValidThread());
- Set(path, Value::CreateRealValue(in_value));
+ Set(path, Value::CreateDoubleValue(in_value));
}
void CrosSettings::SetString(const std::string& path,
@@ -181,14 +181,14 @@ bool CrosSettings::GetInteger(const std::string& path,
return value->GetAsInteger(out_value);
}
-bool CrosSettings::GetReal(const std::string& path,
- double* out_value) const {
+bool CrosSettings::GetDouble(const std::string& path,
+ double* out_value) const {
DCHECK(CalledOnValidThread());
Value* value;
if (!Get(path, &value))
return false;
- return value->GetAsReal(out_value);
+ return value->GetAsDouble(out_value);
}
bool CrosSettings::GetString(const std::string& path,

Powered by Google App Engine
This is Rietveld 408576698