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

Unified Diff: headless/lib/browser/headless_browser_impl.h

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_context.cc ('k') | headless/lib/browser/headless_browser_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_impl.h
diff --git a/headless/lib/browser/headless_browser_impl.h b/headless/lib/browser/headless_browser_impl.h
index 86d23a90762a1cacd2493b16a82fb9018949d9a2..3a4abd3277701980557de7a939807bc49b93c537 100644
--- a/headless/lib/browser/headless_browser_impl.h
+++ b/headless/lib/browser/headless_browser_impl.h
@@ -7,7 +7,8 @@
#include "headless/public/headless_browser.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/synchronization/lock.h"
#include "headless/lib/browser/headless_web_contents_impl.h"
@@ -28,7 +29,7 @@ class HeadlessBrowserImpl : public HeadlessBrowser {
~HeadlessBrowserImpl() override;
// HeadlessBrowser implementation:
- scoped_ptr<HeadlessWebContents> CreateWebContents(
+ std::unique_ptr<HeadlessWebContents> CreateWebContents(
const gfx::Size& size) override;
scoped_refptr<base::SingleThreadTaskRunner> BrowserMainThread()
const override;
@@ -53,7 +54,7 @@ class HeadlessBrowserImpl : public HeadlessBrowser {
base::Callback<void(HeadlessBrowser*)> on_start_callback_;
HeadlessBrowser::Options options_;
HeadlessBrowserMainParts* browser_main_parts_; // Not owned.
- scoped_ptr<aura::WindowTreeHost> window_tree_host_;
+ std::unique_ptr<aura::WindowTreeHost> window_tree_host_;
DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserImpl);
};
« no previous file with comments | « headless/lib/browser/headless_browser_context.cc ('k') | headless/lib/browser/headless_browser_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698