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

Unified Diff: content/browser/debugger/devtools_netlog_observer.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review 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
« no previous file with comments | « chrome/test/webdriver/webdriver_session.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/devtools_netlog_observer.cc
diff --git a/content/browser/debugger/devtools_netlog_observer.cc b/content/browser/debugger/devtools_netlog_observer.cc
index 9e278b0da4e6f3dfcedadc2ee0827847b48bcc6e..bc3786c5db70d693be431649cf5b8bf9fce39f18 100644
--- a/content/browser/debugger/devtools_netlog_observer.cc
+++ b/content/browser/debugger/devtools_netlog_observer.cc
@@ -225,7 +225,7 @@ void DevToolsNetLogObserver::OnAddSocketEntry(
if (net::NetLog::TYPE_SOCKET_BYTES_RECEIVED == type) {
int byte_count = 0;
scoped_ptr<Value> value(params->ToValue());
- if (!value->IsType(Value::TYPE_DICTIONARY))
+ if (!value->IsDictionary())
return;
DictionaryValue* dValue = static_cast<DictionaryValue*>(value.get());
« no previous file with comments | « chrome/test/webdriver/webdriver_session.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698