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

Unified Diff: headless/lib/browser/headless_web_contents_impl.cc

Issue 2762593002: Add --headless flag to Windows (Closed)
Patch Set: added TODO Created 3 years, 7 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 | « headless/lib/browser/headless_printing_unittest.cc ('k') | headless/lib/headless_browser_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_web_contents_impl.cc
diff --git a/headless/lib/browser/headless_web_contents_impl.cc b/headless/lib/browser/headless_web_contents_impl.cc
index bc7aff976d09ad9a0955da2296fc9fcef546c301..27fef7420518393183ca257deb467eb4eb384fbc 100644
--- a/headless/lib/browser/headless_web_contents_impl.cc
+++ b/headless/lib/browser/headless_web_contents_impl.cc
@@ -90,6 +90,7 @@ class HeadlessWebContentsImpl::Delegate : public content::WebContentsDelegate {
browser_context_->RegisterWebContents(std::move(web_contents));
}
+#if !defined(CHROME_MULTIPLE_DLL_CHILD)
// Return the security style of the given |web_contents|, populating
// |security_style_explanations| to explain why the SecurityStyle was chosen.
blink::WebSecurityStyle GetSecurityStyle(
@@ -104,6 +105,7 @@ class HeadlessWebContentsImpl::Delegate : public content::WebContentsDelegate {
return security_state::GetSecurityStyle(security_info,
security_style_explanations);
}
+#endif // !defined(CHROME_MULTIPLE_DLL_CHILD)
void ActivateContents(content::WebContents* contents) override {
contents->GetRenderViewHost()->GetWidget()->Focus();
@@ -202,7 +204,7 @@ HeadlessWebContentsImpl::HeadlessWebContentsImpl(
agent_host_(content::DevToolsAgentHost::GetOrCreateFor(web_contents)),
browser_context_(browser_context),
render_process_host_(web_contents->GetRenderProcessHost()) {
-#if BUILDFLAG(ENABLE_BASIC_PRINTING)
+#if BUILDFLAG(ENABLE_BASIC_PRINTING) && !defined(CHROME_MULTIPLE_DLL_CHILD)
printing::HeadlessPrintManager::CreateForWebContents(web_contents);
#endif
web_contents_->SetDelegate(web_contents_delegate_.get());
« no previous file with comments | « headless/lib/browser/headless_printing_unittest.cc ('k') | headless/lib/headless_browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698