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

Unified Diff: remoting/host/plugin/policy_hack/nat_policy.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nat_policy.cc Created 9 years, 4 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: remoting/host/plugin/policy_hack/nat_policy.cc
diff --git a/remoting/host/plugin/policy_hack/nat_policy.cc b/remoting/host/plugin/policy_hack/nat_policy.cc
index 07a28def2579994ef4ed9f93e353624240e07ecb..4ca7480fcbc5e3d9879694df4c3785f7e3fac36c 100644
--- a/remoting/host/plugin/policy_hack/nat_policy.cc
+++ b/remoting/host/plugin/policy_hack/nat_policy.cc
@@ -95,10 +95,8 @@ void NatPolicy::UpdateNatPolicy(base::DictionaryValue* new_policy) {
// Otherwise, try to parse the value and only change from false if we get
// a successful read.
base::Value* value;
- if (new_policy->Get(kNatPolicyName, &value) &&
- value->IsType(base::Value::TYPE_BOOLEAN)) {
+ if (new_policy->Get(kNatPolicyName, &value) && value->IsBoolean())
CHECK(value->GetAsBoolean(&new_nat_enabled_state));
- }
}
if (!first_state_published_ ||

Powered by Google App Engine
This is Rietveld 408576698