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

Unified Diff: components/devtools_service/devtools_service.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
Index: components/devtools_service/devtools_service.cc
diff --git a/components/devtools_service/devtools_service.cc b/components/devtools_service/devtools_service.cc
index 291fca35b9bc8859ad5df741d34f0b15be348c36..cf265f8e30eae98a37533e9ef321107b7837bdcb 100644
--- a/components/devtools_service/devtools_service.cc
+++ b/components/devtools_service/devtools_service.cc
@@ -8,13 +8,13 @@
#include "base/logging.h"
#include "components/devtools_service/devtools_http_server.h"
-#include "mojo/shell/public/cpp/application_impl.h"
+#include "mojo/shell/public/cpp/shell.h"
namespace devtools_service {
-DevToolsService::DevToolsService(mojo::ApplicationImpl* application)
- : application_(application), registry_(this) {
- DCHECK(application_);
+DevToolsService::DevToolsService(mojo::Shell* shell)
+ : shell_(shell), registry_(this) {
+ DCHECK(shell_);
}
DevToolsService::~DevToolsService() {
« no previous file with comments | « components/devtools_service/devtools_service.h ('k') | components/devtools_service/devtools_service_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698