Chrome side of consolidating zoom code for pepper plugins (i.e. pdf) and the rest of Chrome.  Allows plugins to have different zoom ranges, and also to update zoom on its own.
Review URL: http://codereview.chromium.org/3419023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61153 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/values.cc b/base/values.cc
index ce73cb1d..cd0f6a8 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -561,6 +561,15 @@
   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 {