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

Unified Diff: content/shell/shell_devtools_delegate.cc

Issue 10837177: Add a menu item to content_shell to open devtools to make it more discoverable. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android compile, and add gtk support Created 8 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: content/shell/shell_devtools_delegate.cc
===================================================================
--- content/shell/shell_devtools_delegate.cc (revision 150609)
+++ content/shell/shell_devtools_delegate.cc (working copy)
@@ -4,8 +4,6 @@
#include "content/shell/shell_devtools_delegate.h"
-#include <algorithm>
-
#include "content/public/browser/devtools_http_handler.h"
#include "grit/shell_resources.h"
#include "net/base/tcp_listen_socket.h"
@@ -16,11 +14,10 @@
namespace content {
ShellDevToolsDelegate::ShellDevToolsDelegate(
- int port,
net::URLRequestContextGetter* context_getter)
: context_getter_(context_getter) {
devtools_http_handler_ = DevToolsHttpHandler::Start(
- new net::TCPListenSocketFactory("127.0.0.1", port),
+ new net::TCPListenSocketFactory("127.0.0.1", 0),
"",
context_getter_,
this);

Powered by Google App Engine
This is Rietveld 408576698