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

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

Issue 1781193004: headless: Make it possible to configure an HTTP proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 4 years, 9 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_browser_context.h ('k') | headless/lib/browser/headless_browser_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_context.cc
diff --git a/headless/lib/browser/headless_browser_context.cc b/headless/lib/browser/headless_browser_context.cc
index dd4231746d79c86267e696ec841e5b1ddc01714d..6f4f191450e58e908bdcccf24c91ba49718c33ac 100644
--- a/headless/lib/browser/headless_browser_context.cc
+++ b/headless/lib/browser/headless_browser_context.cc
@@ -156,6 +156,11 @@ HeadlessBrowserContext::GetBackgroundSyncController() {
return nullptr;
}
+void HeadlessBrowserContext::SetOptionsForTesting(
+ const HeadlessBrowser::Options& options) {
+ options_ = options;
+}
+
void HeadlessBrowserContext::SetURLRequestContextGetter(
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter) {
resource_context_->set_url_request_context_getter(url_request_context_getter);
« no previous file with comments | « headless/lib/browser/headless_browser_context.h ('k') | headless/lib/browser/headless_browser_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698