| Index: chrome/browser/extensions/system/system_api.cc
|
| diff --git a/chrome/browser/extensions/system/system_api.cc b/chrome/browser/extensions/system/system_api.cc
|
| index 042eb3566775c28b4d083a956b1e1b9de96c65f8..14923a3dd5a5faa136b517b86d87de2ee89d1a97 100644
|
| --- a/chrome/browser/extensions/system/system_api.cc
|
| +++ b/chrome/browser/extensions/system/system_api.cc
|
| @@ -73,8 +73,7 @@ bool GetIncognitoModeAvailabilityFunction::RunImpl() {
|
| EXTENSION_FUNCTION_VALIDATE(
|
| value >= 0 &&
|
| value < static_cast<int>(arraysize(kIncognitoModeAvailabilityStrings)));
|
| - result_.reset(
|
| - Value::CreateStringValue(kIncognitoModeAvailabilityStrings[value]));
|
| + SetResult(Value::CreateStringValue(kIncognitoModeAvailabilityStrings[value]));
|
| return true;
|
| }
|
|
|
| @@ -134,7 +133,7 @@ bool GetUpdateStatusFunction::RunImpl() {
|
| DictionaryValue* dict = new DictionaryValue();
|
| dict->SetString(kStateKey, state);
|
| dict->SetDouble(kDownloadProgressKey, download_progress);
|
| - result_.reset(dict);
|
| + SetResult(dict);
|
|
|
| return true;
|
| }
|
|
|