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

Unified Diff: headless/test/headless_browser_test.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/test/headless_browser_test.h ('k') | headless/test/headless_test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/test/headless_browser_test.cc
diff --git a/headless/test/headless_browser_test.cc b/headless/test/headless_browser_test.cc
index d81279ceff6f84598830086e826c1de1ad5b7abe..380ccd7a28642277040a118c05977807c05e4b58 100644
--- a/headless/test/headless_browser_test.cc
+++ b/headless/test/headless_browser_test.cc
@@ -99,10 +99,9 @@ void HeadlessBrowserTest::RunTestOnMainThreadLoop() {
}
}
-void HeadlessBrowserTest::SetBrowserOptions(
- const HeadlessBrowser::Options& options) {
+void HeadlessBrowserTest::SetBrowserOptions(HeadlessBrowser::Options options) {
HeadlessContentMainDelegate::GetInstance()->browser()->SetOptionsForTesting(
- options);
+ std::move(options));
}
HeadlessBrowser* HeadlessBrowserTest::browser() const {
« no previous file with comments | « headless/test/headless_browser_test.h ('k') | headless/test/headless_test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698