| Index: extensions/browser/api/storage/storage_api.cc
|
| diff --git a/extensions/browser/api/storage/storage_api.cc b/extensions/browser/api/storage/storage_api.cc
|
| index 3f1882d066da2e619fda92ccec54d43fcc6977d1..15967e1869efc39267dcacaf2f4c8dab8a518bdd 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::Done, this, base::Passed(&response)));
|
| }
|
|
|
| ExtensionFunction::ResponseValue SettingsFunction::UseReadResult(
|
|
|