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

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

Issue 2013483002: headless: Make HeadlessBrowser::Options move-only (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_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 59e50ae20254867446ec9bce624463c9468bf3db..6d1a7cff4242b88882306f372af48b4f34241a0b 100644
--- a/headless/lib/browser/headless_browser_context.cc
+++ b/headless/lib/browser/headless_browser_context.cc
@@ -65,7 +65,7 @@ net::URLRequestContext* HeadlessResourceContext::GetRequestContext() {
}
HeadlessBrowserContext::HeadlessBrowserContext(
- const HeadlessBrowser::Options& options)
+ HeadlessBrowser::Options* options)
: resource_context_(new HeadlessResourceContext), options_(options) {
InitWhileIOAllowed();
}
@@ -173,7 +173,7 @@ HeadlessBrowserContext::CreateMediaRequestContextForStoragePartition(
}
void HeadlessBrowserContext::SetOptionsForTesting(
- const HeadlessBrowser::Options& options) {
+ HeadlessBrowser::Options* options) {
options_ = options;
}
« 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