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

Unified Diff: chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/ui/views/extensions/extension_action_platform_delegate_views.cc
diff --git a/chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc b/chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc
index 1a21af9d6926a7de6dbedc59ecd636bc9e8b93a7..efde20b3ad3fca438e512c5f202ca933a74e83d4 100644
--- a/chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc
+++ b/chrome/browser/ui/views/extensions/extension_action_platform_delegate_views.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "chrome/browser/extensions/extension_action.h"
#include "chrome/browser/extensions/extension_view_host.h"
#include "chrome/browser/profiles/profile.h"
@@ -29,10 +30,10 @@
using extensions::ActionInfo;
// static
-scoped_ptr<ExtensionActionPlatformDelegate>
+std::unique_ptr<ExtensionActionPlatformDelegate>
ExtensionActionPlatformDelegate::Create(
ExtensionActionViewController* controller) {
- return make_scoped_ptr(new ExtensionActionPlatformDelegateViews(controller));
+ return base::WrapUnique(new ExtensionActionPlatformDelegateViews(controller));
}
ExtensionActionPlatformDelegateViews::ExtensionActionPlatformDelegateViews(
@@ -72,7 +73,7 @@ void ExtensionActionPlatformDelegateViews::RegisterCommand() {
}
void ExtensionActionPlatformDelegateViews::ShowPopup(
- scoped_ptr<extensions::ExtensionViewHost> host,
+ std::unique_ptr<extensions::ExtensionViewHost> host,
bool grant_tab_permissions,
ExtensionActionViewController::PopupShowAction show_action) {
// TOP_RIGHT is correct for both RTL and LTR, because the views platform

Powered by Google App Engine
This is Rietveld 408576698