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

Unified Diff: components/devtools_service/devtools_http_server.cc

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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 | « components/clipboard/clipboard_apptest.cc ('k') | components/devtools_service/devtools_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/devtools_service/devtools_http_server.cc
diff --git a/components/devtools_service/devtools_http_server.cc b/components/devtools_service/devtools_http_server.cc
index 33bae37c405d7355bdd485f0cca50d7a78ef8083..38b166f103dfee4f3f0887625182d1b78d0d42ed 100644
--- a/components/devtools_service/devtools_http_server.cc
+++ b/components/devtools_service/devtools_http_server.cc
@@ -25,7 +25,7 @@
#include "mojo/services/network/public/interfaces/net_address.mojom.h"
#include "mojo/services/network/public/interfaces/network_service.mojom.h"
#include "mojo/services/network/public/interfaces/web_socket.mojom.h"
-#include "mojo/shell/public/cpp/application_impl.h"
+#include "mojo/shell/public/cpp/shell.h"
namespace devtools_service {
@@ -337,8 +337,7 @@ DevToolsHttpServer::DevToolsHttpServer(DevToolsService* service,
VLOG(1) << "Remote debugging HTTP server is started on port "
<< remote_debugging_port << ".";
mojo::NetworkServicePtr network_service;
- service_->application()->ConnectToService("mojo:network_service",
- &network_service);
+ service_->shell()->ConnectToService("mojo:network_service", &network_service);
mojo::NetAddressPtr local_address(mojo::NetAddress::New());
local_address->family = mojo::NetAddressFamily::IPV4;
« no previous file with comments | « components/clipboard/clipboard_apptest.cc ('k') | components/devtools_service/devtools_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698