Chromium Code Reviews| 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..aab656d9bc70da7f8e231fe8180cb455093ee912 100644 |
| --- a/ui/app_list/app_list_model.cc |
| +++ b/ui/app_list/app_list_model.cc |
| @@ -40,17 +40,11 @@ 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) { |
| + users_ = users; |
| FOR_EACH_OBSERVER(AppListModelObserver, |
| observers_, |
| - OnAppListModelCurrentUserChanged()); |
| + OnAppListModelUsersChanged()); |
| } |
| void AppListModel::SetSignedIn(bool signed_in) { |
| @@ -63,4 +57,10 @@ void AppListModel::SetSignedIn(bool signed_in) { |
| OnAppListModelSigninStatusChanged()); |
| } |
| +AppListModel::User::User() : active(false) { |
|
tapted
2013/09/11 05:50:26
nit: move these to the top to match declaration or
calamity
2013/09/13 18:02:35
Done.
|
| +} |
| + |
| +AppListModel::User::~User() { |
| +} |
| + |
| } // namespace app_list |