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

Unified Diff: headless/lib/browser/headless_content_browser_client.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/lib/browser/headless_browser_main_parts.h ('k') | headless/lib/browser/headless_devtools.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_content_browser_client.cc
diff --git a/headless/lib/browser/headless_content_browser_client.cc b/headless/lib/browser/headless_content_browser_client.cc
index fb718afa58c71751e4cfb5dc70e1de1bf6925d6c..0fa3681b87978b06905f178d6e81dd626ef62f9a 100644
--- a/headless/lib/browser/headless_content_browser_client.cc
+++ b/headless/lib/browser/headless_content_browser_client.cc
@@ -4,6 +4,9 @@
#include "headless/lib/browser/headless_content_browser_client.h"
+#include <memory>
+
+#include "base/memory/ptr_util.h"
#include "content/public/browser/browser_thread.h"
#include "headless/lib/browser/headless_browser_context.h"
#include "headless/lib/browser/headless_browser_impl.h"
@@ -19,8 +22,8 @@ HeadlessContentBrowserClient::~HeadlessContentBrowserClient() {}
content::BrowserMainParts* HeadlessContentBrowserClient::CreateBrowserMainParts(
const content::MainFunctionParams&) {
- scoped_ptr<HeadlessBrowserMainParts> browser_main_parts =
- make_scoped_ptr(new HeadlessBrowserMainParts(browser_));
+ std::unique_ptr<HeadlessBrowserMainParts> browser_main_parts =
+ base::WrapUnique(new HeadlessBrowserMainParts(browser_));
browser_->set_browser_main_parts(browser_main_parts.get());
return browser_main_parts.release();
}
« no previous file with comments | « headless/lib/browser/headless_browser_main_parts.h ('k') | headless/lib/browser/headless_devtools.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698