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

Side by Side Diff: chrome/browser/extensions/api/alarms/alarms_api.cc

Issue 10348005: Revert 135077 - Files generated by the JSON schema compiler are named incorrectly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/alarms/alarm_manager.h ('k') | chrome/browser/extensions/api/bluetooth/bluetooth_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698