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/alarms/alarms_api.h" | 5 #include "chrome/browser/extensions/api/alarms/alarms_api.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/extensions/api/alarms/alarm_manager.h" | 8 #include "chrome/browser/extensions/api/alarms/alarm_manager.h" |
9 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
10 #include "chrome/common/extensions/api/experimental_alarms.h" | 10 #include "chrome/common/extensions/api/experimental.alarms.h" |
11 #include "chrome/common/extensions/extension_error_utils.h" | 11 #include "chrome/common/extensions/extension_error_utils.h" |
12 | 12 |
13 namespace alarms = extensions::api::experimental_alarms; | 13 namespace alarms = extensions::api::experimental_alarms; |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 const char kDefaultAlarmName[] = ""; | 19 const char kDefaultAlarmName[] = ""; |
20 const char kAlarmNotFound[] = "No alarm named '*' exists."; | 20 const char kAlarmNotFound[] = "No alarm named '*' exists."; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 return true; | 85 return true; |
86 } | 86 } |
87 | 87 |
88 bool AlarmsClearAllFunction::RunImpl() { | 88 bool AlarmsClearAllFunction::RunImpl() { |
89 ExtensionSystem::Get(profile())->alarm_manager()->RemoveAllAlarms( | 89 ExtensionSystem::Get(profile())->alarm_manager()->RemoveAllAlarms( |
90 extension_id()); | 90 extension_id()); |
91 return true; | 91 return true; |
92 } | 92 } |
93 | 93 |
94 } // namespace extensions | 94 } // namespace extensions |
OLD | NEW |