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

Unified Diff: chrome/browser/extensions/extension_managed_mode_api.cc

Issue 10694106: Added support for multiple parameters to Extension API callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced. Created 8 years, 5 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/extension_managed_mode_api.cc
diff --git a/chrome/browser/extensions/extension_managed_mode_api.cc b/chrome/browser/extensions/extension_managed_mode_api.cc
index 11e9f6fede5e2ecf8f0d8aaceec612d003e30fc5..9ca66e0af4f6c1108bc4e674b6e6092c6ea9b3c9 100644
--- a/chrome/browser/extensions/extension_managed_mode_api.cc
+++ b/chrome/browser/extensions/extension_managed_mode_api.cc
@@ -78,7 +78,7 @@ bool GetManagedModeFunction::RunImpl() {
scoped_ptr<DictionaryValue> result(new DictionaryValue);
result->SetBoolean(keys::kValue, in_managed_mode);
- result_.reset(result.release());
+ SetResult(result.release());
return true;
}
@@ -94,7 +94,7 @@ bool EnterManagedModeFunction::RunImpl() {
void EnterManagedModeFunction::SendResult(bool success) {
scoped_ptr<DictionaryValue> result(new DictionaryValue);
result->SetBoolean(kEnterSuccessKey, success);
- result_.reset(result.release());
+ SetResult(result.release());
SendResponse(true);
}
@@ -108,7 +108,7 @@ bool GetPolicyFunction::RunImpl() {
ManagedModePolicyProviderFactory::GetForProfile(profile_);
const base::Value* policy = policy_provider->GetPolicy(key);
if (policy)
- result_.reset(policy->DeepCopy());
+ SetResult(policy->DeepCopy());
#endif
return true;
}

Powered by Google App Engine
This is Rietveld 408576698