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

Unified Diff: apps/custom_launcher_page_contents.h

Issue 1851373002: convert //apps 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 | « no previous file | apps/custom_launcher_page_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/custom_launcher_page_contents.h
diff --git a/apps/custom_launcher_page_contents.h b/apps/custom_launcher_page_contents.h
index cd4164cf08b39bcc5614db04a6e35cd039cf002d..b5522873ebc2b39f5f52869783feccef6848d1bf 100644
--- a/apps/custom_launcher_page_contents.h
+++ b/apps/custom_launcher_page_contents.h
@@ -5,7 +5,8 @@
#ifndef APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_
#define APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "content/public/browser/web_contents_delegate.h"
class GURL;
@@ -27,8 +28,9 @@ namespace apps {
// extension system.
class CustomLauncherPageContents : public content::WebContentsDelegate {
public:
- CustomLauncherPageContents(scoped_ptr<extensions::AppDelegate> app_delegate,
- const std::string& extension_id);
+ CustomLauncherPageContents(
+ std::unique_ptr<extensions::AppDelegate> app_delegate,
+ const std::string& extension_id);
~CustomLauncherPageContents() override;
// Called to initialize and load the WebContents.
@@ -68,9 +70,9 @@ class CustomLauncherPageContents : public content::WebContentsDelegate {
content::MediaStreamType type) override;
private:
- scoped_ptr<content::WebContents> web_contents_;
- scoped_ptr<extensions::AppDelegate> app_delegate_;
- scoped_ptr<extensions::AppWebContentsHelper> helper_;
+ std::unique_ptr<content::WebContents> web_contents_;
+ std::unique_ptr<extensions::AppDelegate> app_delegate_;
+ std::unique_ptr<extensions::AppWebContentsHelper> helper_;
std::string extension_id_;
« no previous file with comments | « no previous file | apps/custom_launcher_page_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698