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

Unified Diff: ui/message_center/message_center_tray.cc

Issue 922923002: ui: Cleanup the usage of scoped_ptr throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 10 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/gl/gl_context.cc ('k') | ui/native_theme/common_theme.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center_tray.cc
diff --git a/ui/message_center/message_center_tray.cc b/ui/message_center/message_center_tray.cc
index a4fbb0895b1b4760495f27123eb890d3e261a4b4..1ce4e8e9e5af29da0cdced133cad562e9b49b519 100644
--- a/ui/message_center/message_center_tray.cc
+++ b/ui/message_center/message_center_tray.cc
@@ -198,8 +198,8 @@ void MessageCenterTray::ShowNotifierSettingsBubble() {
scoped_ptr<ui::MenuModel> MessageCenterTray::CreateNotificationMenuModel(
const NotifierId& notifier_id,
const base::string16& display_source) {
- return scoped_ptr<ui::MenuModel>(new NotificationMenuModel(
- this, notifier_id, display_source));
+ return make_scoped_ptr(
+ new NotificationMenuModel(this, notifier_id, display_source));
}
void MessageCenterTray::OnNotificationAdded(
« no previous file with comments | « ui/gl/gl_context.cc ('k') | ui/native_theme/common_theme.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698