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

Unified Diff: chrome/browser/extensions/extension_view_host.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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
Index: chrome/browser/extensions/extension_view_host.h
diff --git a/chrome/browser/extensions/extension_view_host.h b/chrome/browser/extensions/extension_view_host.h
index a5966d226bbb2250c4e2df18435c5239bb7935b6..ad4721dad43d277f4f50276cf3f4157e174e7588 100644
--- a/chrome/browser/extensions/extension_view_host.h
+++ b/chrome/browser/extensions/extension_view_host.h
@@ -5,8 +5,9 @@
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/web_modal/web_contents_modal_dialog_host.h"
#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
#include "content/public/browser/notification_observer.h"
@@ -110,18 +111,20 @@ class ExtensionViewHost
private:
// Implemented per-platform. Create the platform-specific ExtensionView.
- static scoped_ptr<ExtensionView> CreateExtensionView(ExtensionViewHost* host,
- Browser* browser);
+ static std::unique_ptr<ExtensionView> CreateExtensionView(
+ ExtensionViewHost* host,
+ Browser* browser);
// Optional view that shows the rendered content in the UI.
- scoped_ptr<ExtensionView> view_;
+ std::unique_ptr<ExtensionView> view_;
// The relevant WebContents associated with this ExtensionViewHost, if any.
content::WebContents* associated_web_contents_;
// Observer to detect when the associated web contents is destroyed.
class AssociatedWebContentsObserver;
- scoped_ptr<AssociatedWebContentsObserver> associated_web_contents_observer_;
+ std::unique_ptr<AssociatedWebContentsObserver>
+ associated_web_contents_observer_;
content::NotificationRegistrar registrar_;
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | chrome/browser/extensions/extension_view_host_factory_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698