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

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

Issue 2374063002: Headless: expose WebPreferences to embedder, add --hide-scrollbars. (Closed)
Patch Set: Address comments, add test. Created 4 years, 3 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: headless/lib/browser/headless_browser_context_options.cc
diff --git a/headless/lib/browser/headless_browser_context_options.cc b/headless/lib/browser/headless_browser_context_options.cc
index 82e3d51ab5afb5600df42856c7c38824aa4e1281..13faa83889e3f8d6b69ab4f63af06e23b926e95c 100644
--- a/headless/lib/browser/headless_browser_context_options.cc
+++ b/headless/lib/browser/headless_browser_context_options.cc
@@ -70,4 +70,9 @@ ProtocolHandlerMap HeadlessBrowserContextOptions::TakeProtocolHandlers() {
return std::move(protocol_handlers_);
}
+const base::Callback<void(WebPreferences*)>&
+HeadlessBrowserContextOptions::override_web_preferences_callback() const {
+ return override_web_preferences_callback_;
+}
+
} // namespace headless
« no previous file with comments | « headless/lib/browser/headless_browser_context_options.h ('k') | headless/lib/browser/headless_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698