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

Unified Diff: sky/viewer/document_view.cc

Issue 690433004: Add inspect command to skydb (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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: sky/viewer/document_view.cc
diff --git a/sky/viewer/document_view.cc b/sky/viewer/document_view.cc
index 2265ae1930a9005ad7ee26a8a32b260e8c7b4481..d5754d75405afcd8b79b781b0e73166003bf4cb0 100644
--- a/sky/viewer/document_view.cc
+++ b/sky/viewer/document_view.cc
@@ -75,6 +75,7 @@ DocumentView::DocumentView(
web_view_(NULL),
root_(NULL),
view_manager_client_factory_(shell, this),
+ inspector_service_factory_(this),
compositor_thread_(compositor_thread),
weak_factory_(this) {
mojo::ServiceProviderImpl* exported_services = new mojo::ServiceProviderImpl();
@@ -102,6 +103,7 @@ void DocumentView::OnEmbed(
root_ = root;
imported_services_ = imported_services.Pass();
navigator_host_.set_service_provider(imported_services_.get());
+ exported_services->AddService(&inspector_service_factory_);
Load(response_.Pass());

Powered by Google App Engine
This is Rietveld 408576698