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

Unified Diff: chrome/browser/debugger/devtools_http_protocol_handler.cc

Issue 6997006: iwyu: Include stringprintf.h where appropriate, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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_http_protocol_handler.cc
diff --git a/chrome/browser/debugger/devtools_http_protocol_handler.cc b/chrome/browser/debugger/devtools_http_protocol_handler.cc
index 6e55da082697a08f995cf2543b2f3a97737de27d..90e95e08c5a376f132a631369544204131fd2b5d 100644
--- a/chrome/browser/debugger/devtools_http_protocol_handler.cc
+++ b/chrome/browser/debugger/devtools_http_protocol_handler.cc
@@ -10,6 +10,7 @@
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/message_loop_proxy.h"
+#include "base/stringprintf.h"
#include "base/string_number_conversions.h"
#include "base/threading/thread.h"
#include "base/utf_string_conversions.h"
@@ -152,11 +153,11 @@ void DevToolsHttpProtocolHandler::OnHttpRequest(
net::URLRequest* request;
- if (info.path.find("/devtools/") == 0)
+ if (info.path.find("/devtools/") == 0) {
request = new net::URLRequest(GURL("chrome-devtools:/" + info.path), this);
- else if (info.path.find("/thumb/") == 0)
+ } else if (info.path.find("/thumb/") == 0) {
request = new net::URLRequest(GURL("chrome:/" + info.path), this);
- else {
+ } else {
server_->Send404(connection_id);
return;
}

Powered by Google App Engine
This is Rietveld 408576698