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

Unified Diff: chrome/browser/debugger/devtools_remote_service.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
Index: chrome/browser/debugger/devtools_remote_service.cc
diff --git a/chrome/browser/debugger/devtools_remote_service.cc b/chrome/browser/debugger/devtools_remote_service.cc
index 329e1a8b0cb9a6f9b800bf8344e041bc18e147a4..5868f474413ad29985c26691d2015ba170741170 100644
--- a/chrome/browser/debugger/devtools_remote_service.cc
+++ b/chrome/browser/debugger/devtools_remote_service.cc
@@ -46,7 +46,7 @@ void DevToolsRemoteService::HandleMessage(
return;
}
DictionaryValue* json;
- if (request->IsType(Value::TYPE_DICTIONARY)) {
+ if (request->IsDictionary()) {
json = static_cast<DictionaryValue*>(request.get());
if (!json->HasKey(kCommandKey)) {
NOTREACHED(); // Broken protocol - no "command" specified
« no previous file with comments | « chrome/browser/debugger/debugger_remote_service.cc ('k') | chrome/browser/debugger/extension_ports_remote_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698