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

Unified Diff: ui/message_center/views/toast_contents_view.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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
« no previous file with comments | « ui/message_center/views/toast_contents_view.h ('k') | ui/mojo/init/ui_init.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/toast_contents_view.cc
diff --git a/ui/message_center/views/toast_contents_view.cc b/ui/message_center/views/toast_contents_view.cc
index fd2cb46a50d74e16e8e609a7616cfc379d3d89b5..0852aca404c43b04e7551063b59681fbf242ec4a 100644
--- a/ui/message_center/views/toast_contents_view.cc
+++ b/ui/message_center/views/toast_contents_view.cc
@@ -4,9 +4,10 @@
#include "ui/message_center/views/toast_contents_view.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "build/build_config.h"
@@ -313,9 +314,9 @@ void ToastContentsView::RemoveNotification(
collection_->RemoveNotification(notification_id, by_user);
}
-scoped_ptr<ui::MenuModel> ToastContentsView::CreateMenuModel(
- const NotifierId& notifier_id,
- const base::string16& display_source) {
+std::unique_ptr<ui::MenuModel> ToastContentsView::CreateMenuModel(
+ const NotifierId& notifier_id,
+ const base::string16& display_source) {
// Should not reach, the context menu should be handled in
// MessagePopupCollection.
NOTREACHED();
« no previous file with comments | « ui/message_center/views/toast_contents_view.h ('k') | ui/mojo/init/ui_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698