OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/extension_app_api.h" | 5 #include "chrome/browser/extensions/extension_app_api.h" |
6 | 6 |
7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/common/chrome_notification_types.h" | 11 #include "chrome/common/chrome_notification_types.h" |
12 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
13 #include "chrome/common/render_messages.h" | 13 #include "chrome/common/render_messages.h" |
14 #include "content/common/notification_service.h" | 14 #include "content/common/notification_service.h" |
15 | 15 |
16 | 16 |
17 const char kBodyTextKey[] = "bodyText"; | 17 const char kBodyTextKey[] = "bodyText"; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 AppNotificationManager* manager = | 160 AppNotificationManager* manager = |
161 profile()->GetExtensionService()->app_notification_manager(); | 161 profile()->GetExtensionService()->app_notification_manager(); |
162 manager->ClearAll(id); | 162 manager->ClearAll(id); |
163 NotificationService::current()->Notify( | 163 NotificationService::current()->Notify( |
164 chrome::NOTIFICATION_APP_NOTIFICATION_STATE_CHANGED, | 164 chrome::NOTIFICATION_APP_NOTIFICATION_STATE_CHANGED, |
165 Source<Profile>(profile_), | 165 Source<Profile>(profile_), |
166 Details<const std::string>(&id)); | 166 Details<const std::string>(&id)); |
167 return true; | 167 return true; |
168 } | 168 } |
OLD | NEW |