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

Unified Diff: chrome/browser/extensions/api/media_galleries/media_galleries_api.h

Issue 12091054: Media Galleries: Always call MediaFileSystemRegistry::GetMediaFileSystemsForExtension() before show… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/media_galleries/media_galleries_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/media_galleries/media_galleries_api.h
===================================================================
--- chrome/browser/extensions/api/media_galleries/media_galleries_api.h (revision 179687)
+++ chrome/browser/extensions/api/media_galleries/media_galleries_api.h (working copy)
@@ -26,6 +26,10 @@
virtual bool RunImpl() OVERRIDE;
private:
+ // Always show the dialog.
+ void AlwaysShowDialog(
+ const std::vector<chrome::MediaFileSystemInfo>& filesystems);
+
// If no galleries are found, show the dialog, otherwise return them.
void ShowDialogIfNoGalleries(
const std::vector<chrome::MediaFileSystemInfo>& filesystems);
@@ -40,6 +44,11 @@
// Shows the configuration dialog to edit gallery preferences.
void ShowDialog();
+
+ // A helper method that calls
+ // MediaFileSystemRegistry::GetMediaFileSystemsForExtension().
+ void GetMediaFileSystemsForExtension(
+ const chrome::MediaFileSystemsCallback& cb);
};
class MediaGalleriesAssembleMediaFileFunction : public SyncExtensionFunction {
« no previous file with comments | « no previous file | chrome/browser/extensions/api/media_galleries/media_galleries_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698