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 4f473efbc36a7fe0e134522219338ae7f13e0dc4..18981d549c66bd64fae36c2df27cb1bba0f1a702 100644 |
--- a/ui/app_list/app_list_model.cc |
+++ b/ui/app_list/app_list_model.cc |
@@ -15,7 +15,8 @@ AppListModel::AppListModel() |
: apps_(new Apps), |
search_box_(new SearchBoxModel), |
results_(new SearchResults), |
- status_(STATUS_NORMAL) { |
+ status_(STATUS_NORMAL), |
+ signed_in_(false) { |
tapted
2013/08/06 09:27:50
This should be initialized before `status_` to mat
calamity
2013/08/08 01:34:58
Done.
|
} |
AppListModel::~AppListModel() { |
@@ -39,4 +40,20 @@ void AppListModel::SetStatus(Status status) { |
OnAppListModelStatusChanged()); |
} |
+void AppListModel::SetCurrentUser(const base::string16& current_user_name, |
+ const base::string16& current_user_email) { |
+ current_user_name_ = current_user_name; |
+ current_user_email_ = current_user_email; |
+ FOR_EACH_OBSERVER(AppListModelObserver, |
+ observers_, |
+ OnAppListModelProfilesChanged()); |
koz (OOO until 15th September)
2013/08/06 08:14:42
OnCurrentUserChanged()?
calamity
2013/08/08 01:34:58
Done.
|
+} |
+ |
+void AppListModel::SetSignedIn(bool signed_in) { |
+ signed_in_ = signed_in; |
+ FOR_EACH_OBSERVER(AppListModelObserver, |
+ observers_, |
+ OnAppListModelSigninStatusChanged()); |
+} |
+ |
} // namespace app_list |