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

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

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small fixups Created 7 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/ui/app_list/apps_model_builder.cc
diff --git a/chrome/browser/ui/app_list/apps_model_builder.cc b/chrome/browser/ui/app_list/apps_model_builder.cc
index b662b4537f18f1e81c044f4cd06ae4d4126915d1..09966d6fa92459b3b6aa921ea8df878a867c2ae1 100644
--- a/chrome/browser/ui/app_list/apps_model_builder.cc
+++ b/chrome/browser/ui/app_list/apps_model_builder.cc
@@ -172,6 +172,15 @@ void AppsModelBuilder::AddApps(const ExtensionSet* extensions, Apps* apps) {
}
}
+void AppsModelBuilder::SetProfile(Profile* profile) {
+ profile_ = profile;
+ model_->DeleteAll();
+ if (tracker_) {
koz (OOO until 15th September) 2013/08/02 01:51:16 nit: no curlies
calamity 2013/08/02 09:59:54 Done.
+ tracker_->RemoveObserver(this);
+ }
+ Build();
+}
+
void AppsModelBuilder::PopulateApps() {
ExtensionService* service =
extensions::ExtensionSystem::Get(profile_)->extension_service();

Powered by Google App Engine
This is Rietveld 408576698