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

Unified Diff: components/html_viewer/html_viewer.cc

Issue 1166123005: Removes ServiceProviders from ViewManager::Embed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 6 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/html_viewer/html_document.cc ('k') | components/view_manager/connection_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_viewer.cc
diff --git a/components/html_viewer/html_viewer.cc b/components/html_viewer/html_viewer.cc
index c8919870fa38b4fe9b42f708eef64b683c419ab3..972e7e8ff2881e899c13d706563990b6de9931f0 100644
--- a/components/html_viewer/html_viewer.cc
+++ b/components/html_viewer/html_viewer.cc
@@ -162,11 +162,11 @@ class HTMLViewer : public mojo::ApplicationDelegate,
}
bool ConfigureIncomingConnection(ApplicationConnection* connection) override {
- // If we're not being connected to from the view manager assume we're being
+ // If we're not being connected to from the browser assume we're being
// run in tests, or a headless environment, in which case we'll never get a
// ui and there is no point in waiting for it.
- if (connection->GetRemoteApplicationURL() != "mojo://view_manager/" &&
- !setup_->did_init()) {
+ if (!setup_->did_init() &&
+ connection->GetRemoteApplicationURL() != "mojo://browser/") {
Ben Goodger (Google) 2015/06/09 20:27:27 oof this feels like a layering violation. seems l
sky 2015/06/09 21:35:31 It's more subtle than that. But, we have a switch
setup_->InitHeadless();
}
connection->AddService(this);
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/view_manager/connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698