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

Unified Diff: chrome/browser/extensions/api/alarms/alarms_api.h

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/alarms/alarms_api.h
diff --git a/chrome/browser/extensions/api/alarms/alarms_api.h b/chrome/browser/extensions/api/alarms/alarms_api.h
index 3d971af819ba0abb5bd98d957bc07a8d7f23b9a7..4bbe33984aa5f6f3872e5bd2225bdd55f8993ebf 100644
--- a/chrome/browser/extensions/api/alarms/alarms_api.h
+++ b/chrome/browser/extensions/api/alarms/alarms_api.h
@@ -27,7 +27,7 @@ class AlarmsCreateFunction : public ChromeAsyncExtensionFunction {
virtual ~AlarmsCreateFunction();
// ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
DECLARE_EXTENSION_FUNCTION("alarms.create", ALARMS_CREATE)
private:
void Callback();
@@ -44,7 +44,7 @@ class AlarmsGetFunction : public ChromeAsyncExtensionFunction {
virtual ~AlarmsGetFunction() {}
// ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
private:
void Callback(const std::string& name, Alarm* alarm);
@@ -56,7 +56,8 @@ class AlarmsGetAllFunction : public ChromeAsyncExtensionFunction {
virtual ~AlarmsGetAllFunction() {}
// ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
+
private:
void Callback(const AlarmList* alarms);
DECLARE_EXTENSION_FUNCTION("alarms.getAll", ALARMS_GETALL)
@@ -67,7 +68,8 @@ class AlarmsClearFunction : public ChromeAsyncExtensionFunction {
virtual ~AlarmsClearFunction() {}
// ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
+
private:
void Callback(const std::string& name, bool success);
DECLARE_EXTENSION_FUNCTION("alarms.clear", ALARMS_CLEAR)
@@ -78,7 +80,8 @@ class AlarmsClearAllFunction : public ChromeAsyncExtensionFunction {
virtual ~AlarmsClearAllFunction() {}
// ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
+
private:
void Callback();
DECLARE_EXTENSION_FUNCTION("alarms.clearAll", ALARMS_CLEARALL)

Powered by Google App Engine
This is Rietveld 408576698