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

Unified Diff: headless/lib/browser/headless_browser_context.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/app/headless_shell.cc ('k') | headless/lib/browser/headless_browser_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/headless_browser_context.h
diff --git a/headless/lib/browser/headless_browser_context.h b/headless/lib/browser/headless_browser_context.h
index 022e6ceb3761ce4577efaefd3a7f8a3ed29d0afa..d7c7f190555e601d8678e10fe04aab9b2210c86a 100644
--- a/headless/lib/browser/headless_browser_context.h
+++ b/headless/lib/browser/headless_browser_context.h
@@ -5,6 +5,8 @@
#ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_H_
#define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_H_
+#include <memory>
+
#include "base/files/file_path.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/content_browser_client.h"
@@ -21,7 +23,7 @@ class HeadlessBrowserContext : public content::BrowserContext {
~HeadlessBrowserContext() override;
// BrowserContext implementation:
- scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
+ std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
const base::FilePath& partition_path) override;
base::FilePath GetPath() const override;
bool IsOffTheRecord() const override;
@@ -55,7 +57,7 @@ class HeadlessBrowserContext : public content::BrowserContext {
void InitWhileIOAllowed();
base::FilePath path_;
- scoped_ptr<HeadlessResourceContext> resource_context_;
+ std::unique_ptr<HeadlessResourceContext> resource_context_;
HeadlessBrowser::Options options_;
DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContext);
« no previous file with comments | « headless/app/headless_shell.cc ('k') | headless/lib/browser/headless_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698