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

Unified Diff: headless/test/headless_test_launcher.cc

Issue 1854043002: convert //headless to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/public/headless_browser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/test/headless_test_launcher.cc
diff --git a/headless/test/headless_test_launcher.cc b/headless/test/headless_test_launcher.cc
index c8ab7163be2d40e188fe653e7509ec78fb1e6905..13e4f6c9d305203b6cbb6aa6096c9c6662379274 100644
--- a/headless/test/headless_test_launcher.cc
+++ b/headless/test/headless_test_launcher.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
#include "base/bind.h"
#include "base/macros.h"
#include "base/sys_info.h"
@@ -47,7 +49,7 @@ class HeadlessTestLauncherDelegate : public content::TestLauncherDelegate {
content::ContentMainDelegate* CreateContentMainDelegate() override {
// Use HeadlessBrowserTest::SetBrowserOptions to override these defaults.
HeadlessBrowser::Options::Builder options_builder;
- scoped_ptr<HeadlessBrowserImpl> browser(
+ std::unique_ptr<HeadlessBrowserImpl> browser(
new HeadlessBrowserImplForTest(options_builder.Build()));
return new HeadlessContentMainDelegate(std::move(browser));
}
« no previous file with comments | « headless/public/headless_browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698