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

Unified Diff: chrome/browser/ui/app_list/apps_model_builder.h

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove binary changes Created 7 years, 3 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/ui/app_list/apps_model_builder.h
diff --git a/chrome/browser/ui/app_list/apps_model_builder.h b/chrome/browser/ui/app_list/apps_model_builder.h
index 0898dd900979ee700f64228bb4332f3e51c35ac2..48628967079f3f421287c862c2c0af58623f14bd 100644
--- a/chrome/browser/ui/app_list/apps_model_builder.h
+++ b/chrome/browser/ui/app_list/apps_model_builder.h
@@ -27,6 +27,8 @@ namespace gfx {
class ImageSkia;
}
+// This class populates and maintains the given |model| with information from
+// |profile|.
class AppsModelBuilder : public ui::ListModelObserver,
public extensions::InstallObserver {
public:
@@ -35,12 +37,12 @@ class AppsModelBuilder : public ui::ListModelObserver,
AppListControllerDelegate* controller);
virtual ~AppsModelBuilder();
- // Populates the model.
- void Build();
-
// Returns app instance with id |extension_id|.
ExtensionAppItem* GetApp(const std::string& extension_id);
+ // Rebuilds the model with the given profile.
+ void SwitchProfile(Profile* profile);
+
private:
typedef std::vector<ExtensionAppItem*> Apps;
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/apps_model_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698