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

Unified Diff: headless/public/headless_browser.cc

Issue 2642143002: [headless] Make --hide-scrollbars affect all BrowserContexts. (Closed)
Patch Set: Created 3 years, 11 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/public/headless_browser.h ('k') | headless/public/headless_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_browser.cc
diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc
index 2b4270bd591f333ee69a287b007c1e0030e841e7..a879e1d66d3e9fddcfd20e95a39c9a14213ceadc 100644
--- a/headless/public/headless_browser.cc
+++ b/headless/public/headless_browser.cc
@@ -102,6 +102,12 @@ Builder& Builder::SetIncognitoMode(bool incognito_mode) {
return *this;
}
+Builder& Builder::SetOverrideWebPreferencesCallback(
+ base::Callback<void(WebPreferences*)> callback) {
+ options_.override_web_preferences_callback = callback;
+ return *this;
+}
+
Options Builder::Build() {
return std::move(options_);
}
« no previous file with comments | « headless/public/headless_browser.h ('k') | headless/public/headless_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698