diff options
Diffstat (limited to 'extensions/browser/api/storage/storage_api.cc')
-rw-r--r-- | extensions/browser/api/storage/storage_api.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/extensions/browser/api/storage/storage_api.cc b/extensions/browser/api/storage/storage_api.cc index 3f1882d..012fe41 100644 --- a/extensions/browser/api/storage/storage_api.cc +++ b/extensions/browser/api/storage/storage_api.cc @@ -32,14 +32,13 @@ bool SettingsFunction::ShouldSkipQuotaLimiting() const { std::string settings_namespace_string; if (!args_->GetString(0, &settings_namespace_string)) { // This should be EXTENSION_FUNCTION_VALIDATE(false) but there is no way - // to signify that from this function. It will be caught in - // RunImplTypesafe(). + // to signify that from this function. It will be caught in Run(). return false; } return settings_namespace_string != "sync"; } -ExtensionFunction::ResponseAction SettingsFunction::RunImplTypesafe() { +ExtensionFunction::ResponseAction SettingsFunction::Run() { std::string settings_namespace_string; EXTENSION_FUNCTION_VALIDATE_TYPESAFE( args_->GetString(0, &settings_namespace_string)); @@ -66,11 +65,10 @@ ExtensionFunction::ResponseAction SettingsFunction::RunImplTypesafe() { void SettingsFunction::AsyncRunWithStorage(ValueStore* storage) { ResponseValue response = RunWithStorage(storage); - BrowserThread::PostTask(BrowserThread::UI, - FROM_HERE, - base::Bind(&SettingsFunction::SendResponseTypesafe, - this, - base::Passed(&response))); + BrowserThread::PostTask( + BrowserThread::UI, + FROM_HERE, + base::Bind(&SettingsFunction::Respond, this, base::Passed(&response))); } ExtensionFunction::ResponseValue SettingsFunction::UseReadResult( |