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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_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/api/file_system/file_system_api.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc
index 37a59c2503077665c8313e9151fcbdc31b9d5d21..e0fc80f4f82f670988c9e1ce82672324690115fe 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
@@ -150,7 +150,7 @@ bool FileSystemGetDisplayPathFunction::RunImpl() {
return false;
file_path = PrettifyPath(file_path);
- result_.reset(base::Value::CreateStringValue(file_path.value()));
+ SetResult(base::Value::CreateStringValue(file_path.value()));
return true;
}
@@ -202,7 +202,7 @@ void FileSystemEntryFunction::RegisterFileSystemAndSendResponse(
policy->GrantReadFile(renderer_id, path);
DictionaryValue* dict = new DictionaryValue();
- result_.reset(dict);
+ SetResult(dict);
dict->SetString("fileSystemId", filesystem_id);
dict->SetString("baseName", registered_name);
SendResponse(true);

Powered by Google App Engine
This is Rietveld 408576698