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

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: use is_headless rather than check for browser. 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/html_viewer/setup.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..3219a9bfd2bf778c6f0e84d19dd4fe0e29956759 100644
--- a/components/html_viewer/html_viewer.cc
+++ b/components/html_viewer/html_viewer.cc
@@ -162,13 +162,6 @@ 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
- // 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()) {
- setup_->InitHeadless();
- }
connection->AddService(this);
return true;
}
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/html_viewer/setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698