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

Unified Diff: chrome/browser/extensions/extension_font_settings_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: Indentation fixes and comment. 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_font_settings_api.cc
diff --git a/chrome/browser/extensions/extension_font_settings_api.cc b/chrome/browser/extensions/extension_font_settings_api.cc
index f3bc3e40c78f2693a85eaa76cd2dd4dc77b3f601..d31c1699759aba63cd65fb373ccb161d2bbd1b17 100644
--- a/chrome/browser/extensions/extension_font_settings_api.cc
+++ b/chrome/browser/extensions/extension_font_settings_api.cc
@@ -293,7 +293,7 @@ bool GetFontFunction::RunImpl() {
DictionaryValue* result = new DictionaryValue();
result->SetString(kFontNameKey, font_name);
result->SetString(kLevelOfControlKey, level_of_control);
- result_.reset(result);
+ SetSingleResult(result);
return true;
}
@@ -360,7 +360,7 @@ bool GetFontListFunction::CopyFontsToResult(ListValue* fonts) {
result->Append(font_name);
}
- result_.reset(result.release());
+ SetSingleResult(result.release());
return true;
}
@@ -395,7 +395,7 @@ bool GetFontPrefExtensionFunction::RunImpl() {
DictionaryValue* result = new DictionaryValue();
result->Set(GetKey(), pref->GetValue()->DeepCopy());
result->SetString(kLevelOfControlKey, level_of_control);
- result_.reset(result);
+ SetSingleResult(result);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698