OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o.h" | 5 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o.h" |
6 | 6 |
7 #include "chrome/browser/notifications/sync_notifier/image_holder.h" | 7 #include "chrome/browser/notifications/sync_notifier/image_holder.h" |
8 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o_service.h" | 8 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o_service.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "sync/api/sync_data.h" | 10 #include "sync/api/sync_data.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 std::vector<std::string>::iterator it; | 52 std::vector<std::string>::iterator it; |
53 | 53 |
54 for (it = app_ids_.begin(); it != app_ids_.end(); ++it) { | 54 for (it = app_ids_.begin(); it != app_ids_.end(); ++it) { |
55 if (app_id == *it) { | 55 if (app_id == *it) { |
56 app_ids_.erase(it); | 56 app_ids_.erase(it); |
57 return; | 57 return; |
58 } | 58 } |
59 } | 59 } |
60 } | 60 } |
61 | 61 |
| 62 void SyncedNotificationAppInfo::SetWelcomeLinkUrl( |
| 63 const GURL& welcome_link_url) { |
| 64 welcome_link_url_ = welcome_link_url; |
| 65 } |
| 66 |
62 void SyncedNotificationAppInfo::SetSettingsURLs( | 67 void SyncedNotificationAppInfo::SetSettingsURLs( |
63 const GURL& settings_low_dpi, const GURL& settings_high_dpi) { | 68 const GURL& settings_low_dpi, const GURL& settings_high_dpi) { |
64 settings_holder_.reset(new ImageHolder(settings_low_dpi, | 69 settings_holder_.reset(new ImageHolder(settings_low_dpi, |
65 settings_high_dpi, | 70 settings_high_dpi, |
66 profile_, | 71 profile_, |
67 this)); | 72 this)); |
68 } | 73 } |
69 | 74 |
70 void SyncedNotificationAppInfo::SetMonochromeURLs( | 75 void SyncedNotificationAppInfo::SetMonochromeURLs( |
71 const GURL& monochrome_low_dpi, const GURL& monochrome_high_dpi) { | 76 const GURL& monochrome_low_dpi, const GURL& monochrome_high_dpi) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 return done; | 150 return done; |
146 } | 151 } |
147 | 152 |
148 message_center::NotifierId SyncedNotificationAppInfo::GetNotifierId() { | 153 message_center::NotifierId SyncedNotificationAppInfo::GetNotifierId() { |
149 return message_center::NotifierId( | 154 return message_center::NotifierId( |
150 message_center::NotifierId::SYNCED_NOTIFICATION_SERVICE, | 155 message_center::NotifierId::SYNCED_NOTIFICATION_SERVICE, |
151 settings_display_name_); | 156 settings_display_name_); |
152 } | 157 } |
153 | 158 |
154 } // namespace notifier | 159 } // namespace notifier |
OLD | NEW |