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

Unified Diff: headless/lib/headless_content_main_delegate.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/headless_content_main_delegate.h ('k') | headless/lib/headless_web_contents_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/headless_content_main_delegate.cc
diff --git a/headless/lib/headless_content_main_delegate.cc b/headless/lib/headless_content_main_delegate.cc
index 64e91c0930230d38aa3b7b16aa3475d4f207ab9f..245341fcb43362d8ea6fbc222e2311b8b94c8ea7 100644
--- a/headless/lib/headless_content_main_delegate.cc
+++ b/headless/lib/headless_content_main_delegate.cc
@@ -27,7 +27,7 @@ HeadlessContentMainDelegate* g_current_headless_content_main_delegate = nullptr;
} // namespace
HeadlessContentMainDelegate::HeadlessContentMainDelegate(
- scoped_ptr<HeadlessBrowserImpl> browser)
+ std::unique_ptr<HeadlessBrowserImpl> browser)
: content_client_(browser->options()), browser_(std::move(browser)) {
DCHECK(!g_current_headless_content_main_delegate);
g_current_headless_content_main_delegate = this;
@@ -69,7 +69,7 @@ int HeadlessContentMainDelegate::RunProcess(
base::trace_event::TraceLog::GetInstance()->SetProcessSortIndex(
kTraceEventBrowserProcessSortIndex);
- scoped_ptr<content::BrowserMainRunner> browser_runner(
+ std::unique_ptr<content::BrowserMainRunner> browser_runner(
content::BrowserMainRunner::Create());
int exit_code = browser_runner->Initialize(main_function_params);
« no previous file with comments | « headless/lib/headless_content_main_delegate.h ('k') | headless/lib/headless_web_contents_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698