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

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

Issue 10835016: Rename media gallery -> media galleries in pref/UI components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_galleries_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_gallery/media_galleries_preferences.h
diff --git a/chrome/browser/media_gallery/media_gallery_registry.h b/chrome/browser/media_gallery/media_galleries_preferences.h
similarity index 82%
rename from chrome/browser/media_gallery/media_gallery_registry.h
rename to chrome/browser/media_gallery/media_galleries_preferences.h
index f6bebe5e49b9870ecc230cfdc2b7a60aa47e7df6..495501f9fd4705acfe49e4f963b5932ef4d1abef 100644
--- a/chrome/browser/media_gallery/media_gallery_registry.h
+++ b/chrome/browser/media_gallery/media_galleries_preferences.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_REGISTRY_H_
-#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_REGISTRY_H_
+#ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_
+#define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_
#include <list>
#include <string>
@@ -44,10 +44,12 @@ struct MediaGallery {
// A class to manage the media galleries that the user has added, explicitly or
// otherwise. There is one registry per user profile.
// TODO(estade): should MediaFileSystemRegistry be merged into this class?
-class MediaGalleryRegistry : public ProfileKeyedService {
+class MediaGalleriesPreferences : public ProfileKeyedService {
public:
- explicit MediaGalleryRegistry(Profile* profile);
- virtual ~MediaGalleryRegistry();
+ typedef std::list<MediaGallery> MediaGalleries;
+
+ explicit MediaGalleriesPreferences(Profile* profile);
+ virtual ~MediaGalleriesPreferences();
// Builds |remembered_galleries_| from the persistent store.
void InitFromPrefs();
@@ -59,8 +61,6 @@ class MediaGalleryRegistry : public ProfileKeyedService {
// Removes the gallery identified by |id| from the store.
void ForgetGalleryById(uint64 id);
- typedef std::list<MediaGallery> MediaGalleries;
-
const MediaGalleries& remembered_galleries() const {
return remembered_galleries_;
}
@@ -81,7 +81,7 @@ class MediaGalleryRegistry : public ProfileKeyedService {
// TODO(estade): either actually use this, or remove it.
MediaGalleries remembered_galleries_;
- DISALLOW_COPY_AND_ASSIGN(MediaGalleryRegistry);
+ DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences);
};
-#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_REGISTRY_H_
+#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_galleries_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698