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

Unified Diff: remoting/host/plugin/policy_hack/nat_policy_linux.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_linux.cc
diff --git a/remoting/host/plugin/policy_hack/nat_policy_linux.cc b/remoting/host/plugin/policy_hack/nat_policy_linux.cc
index 8255660626ff76760645caeea0bbeab4a1b57da5..bfa4fc951bc2be1f8d3a7e661a6a94f37004c1e1 100644
--- a/remoting/host/plugin/policy_hack/nat_policy_linux.cc
+++ b/remoting/host/plugin/policy_hack/nat_policy_linux.cc
@@ -181,7 +181,7 @@ class NatPolicyLinux : public NatPolicy {
<< config_file_iter->value() << ": " << error_msg;
continue;
}
- if (!value->IsType(Value::TYPE_DICTIONARY)) {
+ if (!value->IsDictionary()) {
LOG(WARNING) << "Expected JSON dictionary in configuration file "
<< config_file_iter->value();
continue;
@@ -209,7 +209,7 @@ class NatPolicyLinux : public NatPolicy {
}
// Load the policy definitions.
- scoped_ptr<DictionaryValue> new_policy(Load());
+ scoped_ptr<base::DictionaryValue> new_policy(Load());
tony 2011/08/19 17:24:21 Why is this necessary here? There are lots of oth
tfarina 2011/08/19 18:40:47 Done.
UpdateNatPolicy(new_policy.get());
ScheduleFallbackReloadTask();
« chrome/test/webdriver/commands/command.cc ('K') | « remoting/host/plugin/policy_hack/nat_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698