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

Unified Diff: remoting/client/plugin/chromoting_instance.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/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index cbbfa1eb45aa2f1caa25081a65ab620d341ed0d4..be5611d6454126e51b52c877a499e9863f3c5c47 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -458,7 +458,7 @@ bool ChromotingInstance::IsNatTraversalAllowed(
return false;
}
- if (!policy->IsType(base::Value::TYPE_DICTIONARY)) {
+ if (!policy->IsDictionary()) {
LOG(ERROR) << "Policy must be a dictionary";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698