summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/values.cc b/base/values.cc
index ce73cb1..cd0f6a8 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -561,6 +561,15 @@ bool DictionaryValue::GetIntegerWithoutPathExpansion(const std::string& key,
return value->GetAsInteger(out_value);
}
+bool DictionaryValue::GetRealWithoutPathExpansion(const std::string& key,
+ double* out_value) const {
+ Value* value;
+ if (!GetWithoutPathExpansion(key, &value))
+ return false;
+
+ return value->GetAsReal(out_value);
+}
+
bool DictionaryValue::GetStringWithoutPathExpansion(
const std::string& key,
std::string* out_value) const {