| Index: chrome/browser/extensions/api/alarms/alarms_api.cc
|
| diff --git a/chrome/browser/extensions/api/alarms/alarms_api.cc b/chrome/browser/extensions/api/alarms/alarms_api.cc
|
| index 6c717cb51ff2340c04a46faca2567fdf4622f352..4de16708e7cb39767d0e50c3d1c5d3a9616c7ea9 100644
|
| --- a/chrome/browser/extensions/api/alarms/alarms_api.cc
|
| +++ b/chrome/browser/extensions/api/alarms/alarms_api.cc
|
| @@ -98,7 +98,7 @@ AlarmsCreateFunction::~AlarmsCreateFunction() {
|
| delete clock_;
|
| }
|
|
|
| -bool AlarmsCreateFunction::RunImpl() {
|
| +bool AlarmsCreateFunction::RunAsync() {
|
| scoped_ptr<alarms::Create::Params> params(
|
| alarms::Create::Params::Create(*args_));
|
| EXTENSION_FUNCTION_VALIDATE(params.get());
|
| @@ -129,7 +129,7 @@ void AlarmsCreateFunction::Callback() {
|
| SendResponse(true);
|
| }
|
|
|
| -bool AlarmsGetFunction::RunImpl() {
|
| +bool AlarmsGetFunction::RunAsync() {
|
| scoped_ptr<alarms::Get::Params> params(alarms::Get::Params::Create(*args_));
|
| EXTENSION_FUNCTION_VALIDATE(params.get());
|
|
|
| @@ -150,7 +150,7 @@ void AlarmsGetFunction::Callback(
|
| SendResponse(true);
|
| }
|
|
|
| -bool AlarmsGetAllFunction::RunImpl() {
|
| +bool AlarmsGetAllFunction::RunAsync() {
|
| AlarmManager::Get(GetProfile())->GetAllAlarms(
|
| extension_id(), base::Bind(&AlarmsGetAllFunction::Callback, this));
|
| return true;
|
| @@ -170,7 +170,7 @@ void AlarmsGetAllFunction::Callback(const AlarmList* alarms) {
|
| SendResponse(true);
|
| }
|
|
|
| -bool AlarmsClearFunction::RunImpl() {
|
| +bool AlarmsClearFunction::RunAsync() {
|
| scoped_ptr<alarms::Clear::Params> params(
|
| alarms::Clear::Params::Create(*args_));
|
| EXTENSION_FUNCTION_VALIDATE(params.get());
|
| @@ -189,7 +189,7 @@ void AlarmsClearFunction::Callback(const std::string& name, bool success) {
|
| SendResponse(true);
|
| }
|
|
|
| -bool AlarmsClearAllFunction::RunImpl() {
|
| +bool AlarmsClearAllFunction::RunAsync() {
|
| AlarmManager::Get(GetProfile())->RemoveAllAlarms(
|
| extension_id(), base::Bind(&AlarmsClearAllFunction::Callback, this));
|
| return true;
|
|
|