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

Unified Diff: chrome/browser/media_gallery/media_galleries_preferences.h

Issue 12095074: Media Galleries: Keep media gallery permission dialogs in sync with the gallery (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix nit Created 7 years, 10 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/media_gallery/media_galleries_preferences.h
===================================================================
--- chrome/browser/media_gallery/media_galleries_preferences.h (revision 181443)
+++ chrome/browser/media_gallery/media_galleries_preferences.h (working copy)
@@ -78,7 +78,10 @@
public:
class GalleryChangeObserver {
public:
- virtual void OnGalleryChanged(MediaGalleriesPreferences* pref) {}
+ // |extension_id| specifies the extension affected by this change.
+ // It is empty if the gallery change affects all extensions.
+ virtual void OnGalleryChanged(MediaGalleriesPreferences* pref,
+ const std::string& extension_id) {}
protected:
virtual ~GalleryChangeObserver();
@@ -158,7 +161,7 @@
void InitFromPrefs(bool notify_observers);
// Notifies |gallery_change_observers_| about changes in |known_galleries_|.
- void NotifyChangeObservers();
+ void NotifyChangeObservers(const std::string& extension_id);
extensions::ExtensionPrefs* GetExtensionPrefs() const;

Powered by Google App Engine
This is Rietveld 408576698