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

Unified Diff: chrome/browser/ui/views/toolbar/media_router_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/toolbar/media_router_action_platform_delegate_views.cc
diff --git a/chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.cc b/chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.cc
index eb52b7c3548b0511dcec0b1921bbdb57999b65ab..e2e86a1729037627b46baeef437780bc6ff2781e 100644
--- a/chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.cc
+++ b/chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.cc
@@ -4,14 +4,15 @@
#include "chrome/browser/ui/views/toolbar/media_router_action_platform_delegate_views.h"
+#include "base/memory/ptr_util.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/toolbar/app_menu_button.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
// static
-scoped_ptr<MediaRouterActionPlatformDelegate>
+std::unique_ptr<MediaRouterActionPlatformDelegate>
MediaRouterActionPlatformDelegate::Create(Browser* browser) {
- return make_scoped_ptr(new MediaRouterActionPlatformDelegateViews(browser));
+ return base::WrapUnique(new MediaRouterActionPlatformDelegateViews(browser));
}
MediaRouterActionPlatformDelegateViews::MediaRouterActionPlatformDelegateViews(
« no previous file with comments | « chrome/browser/ui/views/toolbar/chevron_menu_button.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_action_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698