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

Unified Diff: chrome/browser/extensions/api/media_gallery/media_gallery_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/media_gallery/media_gallery_api.cc
diff --git a/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc b/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc
index 7e46ee16e847275c47634231b44597cd3de7420d..15698f6081fcc0582d9248ec50199fa61e7e28ee 100644
--- a/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc
+++ b/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc
@@ -59,7 +59,7 @@ bool GetMediaFileSystemsFunction::RunImpl() {
policy->GrantReadFileSystem(child_id, fsid);
}
- result_.reset(list);
+ SetResult(list);
return true;
}
@@ -67,7 +67,7 @@ OpenMediaGalleryManagerFunction::~OpenMediaGalleryManagerFunction() {}
bool OpenMediaGalleryManagerFunction::RunImpl() {
// TODO(vandebo) Open the Media Gallery Manager UI.
- result_.reset(Value::CreateNullValue());
+ SetResult(Value::CreateNullValue());
return true;
}
@@ -75,7 +75,7 @@ AssembleMediaFileFunction::~AssembleMediaFileFunction() {}
bool AssembleMediaFileFunction::RunImpl() {
// TODO(vandebo) Update the metadata and return the new file.
- result_.reset(Value::CreateNullValue());
+ SetResult(Value::CreateNullValue());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698