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

Unified Diff: base/values.cc

Issue 10944009: Implementation of ONC signature, validator and normalizer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@gperffix
Patch Set: Addressed remaining nits. Created 8 years, 1 month 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
« no previous file with comments | « base/values.h ('k') | chrome/browser/chromeos/cros/onc_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.cc
diff --git a/base/values.cc b/base/values.cc
index 8453bb4836d3bbaa06a0503afdb8a7b2c30de577..0b0eb073e82348ff84d8925b62f6b1db2f118fad 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -633,6 +633,15 @@ bool DictionaryValue::GetWithoutPathExpansion(const std::string& key,
const_cast<const Value**>(out_value));
}
+bool DictionaryValue::GetBooleanWithoutPathExpansion(const std::string& key,
+ bool* out_value) const {
+ const Value* value;
+ if (!GetWithoutPathExpansion(key, &value))
+ return false;
+
+ return value->GetAsBoolean(out_value);
+}
+
bool DictionaryValue::GetIntegerWithoutPathExpansion(const std::string& key,
int* out_value) const {
const Value* value;
« no previous file with comments | « base/values.h ('k') | chrome/browser/chromeos/cros/onc_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698