Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/api/app/app_api.h" | 5 #include "chrome/browser/extensions/api/app/app_api.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "base/utf_string_conversions.h" | |
|
benwells
2012/08/29 12:19:21
Is this needed?
thorogood
2012/08/30 02:37:42
Nope, left over. Removed - thanks!
| |
| 9 #include "chrome/browser/extensions/app_notification_manager.h" | 10 #include "chrome/browser/extensions/app_notification_manager.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/common/extensions/extension_constants.h" | 13 #include "chrome/common/extensions/extension_constants.h" |
| 13 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 const char kBodyTextKey[] = "bodyText"; | 18 const char kBodyTextKey[] = "bodyText"; |
| 18 const char kExtensionIdKey[] = "extensionId"; | 19 const char kExtensionIdKey[] = "extensionId"; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 } | 104 } |
| 104 } | 105 } |
| 105 | 106 |
| 106 AppNotificationManager* manager = | 107 AppNotificationManager* manager = |
| 107 profile()->GetExtensionService()->app_notification_manager(); | 108 profile()->GetExtensionService()->app_notification_manager(); |
| 108 manager->ClearAll(id); | 109 manager->ClearAll(id); |
| 109 return true; | 110 return true; |
| 110 } | 111 } |
| 111 | 112 |
| 112 } // namespace extensions | 113 } // namespace extensions |
| OLD | NEW |