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

Side by Side Diff: ui/arc/notification/arc_notification_manager.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_ 5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_
6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_ 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <unordered_map> 9 #include <unordered_map>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void SendNotificationRemovedFromChrome(const std::string& key); 46 void SendNotificationRemovedFromChrome(const std::string& key);
47 void SendNotificationClickedOnChrome(const std::string& key); 47 void SendNotificationClickedOnChrome(const std::string& key);
48 void SendNotificationButtonClickedOnChrome( 48 void SendNotificationButtonClickedOnChrome(
49 const std::string& key, int button_index); 49 const std::string& key, int button_index);
50 50
51 private: 51 private:
52 const AccountId main_profile_id_; 52 const AccountId main_profile_id_;
53 message_center::MessageCenter* const message_center_; 53 message_center::MessageCenter* const message_center_;
54 54
55 using ItemMap = 55 using ItemMap =
56 std::unordered_map<std::string, scoped_ptr<ArcNotificationItem>>; 56 std::unordered_map<std::string, std::unique_ptr<ArcNotificationItem>>;
57 ItemMap items_; 57 ItemMap items_;
58 58
59 bool ready_ = false; 59 bool ready_ = false;
60 60
61 mojo::Binding<arc::NotificationsHost> binding_; 61 mojo::Binding<arc::NotificationsHost> binding_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(ArcNotificationManager); 63 DISALLOW_COPY_AND_ASSIGN(ArcNotificationManager);
64 }; 64 };
65 65
66 } // namespace arc 66 } // namespace arc
67 67
68 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_ 68 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/arc/notification/arc_notification_item.h ('k') | ui/arc/notification/arc_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698