Index: ui/app_list/app_list_model.cc |
diff --git a/ui/app_list/app_list_model.cc b/ui/app_list/app_list_model.cc |
index a932069d26cacb0dc6cc468edc9f8c25518ebfa5..d21a24c2ba6c0af2f3fb42217f80fba049a46678 100644 |
--- a/ui/app_list/app_list_model.cc |
+++ b/ui/app_list/app_list_model.cc |
@@ -20,6 +20,7 @@ AppListModel::AppListModel() |
} |
AppListModel::~AppListModel() { |
+ STLDeleteElements(&users_); |
} |
void AppListModel::AddObserver(AppListModelObserver* observer) { |
@@ -40,17 +41,12 @@ void AppListModel::SetStatus(Status status) { |
OnAppListModelStatusChanged()); |
} |
-void AppListModel::SetCurrentUser(const base::string16& current_user_name, |
- const base::string16& current_user_email) { |
- if (current_user_name_ == current_user_name && |
- current_user_email_ == current_user_email) { |
- return; |
- } |
- current_user_name_ = current_user_name; |
- current_user_email_ = current_user_email; |
+void AppListModel::SetUsers(const Users& users) { |
+ STLDeleteElements(&users_); |
+ users_ = users; |
FOR_EACH_OBSERVER(AppListModelObserver, |
observers_, |
- OnAppListModelCurrentUserChanged()); |
+ OnAppListModelUsersChanged()); |
} |
void AppListModel::SetSignedIn(bool signed_in) { |