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..1b7fc83120b0a09f2172a0f1d94e6404b6c5aea3 100644 |
--- a/ui/app_list/app_list_model.cc |
+++ b/ui/app_list/app_list_model.cc |
@@ -8,6 +8,7 @@ |
#include "ui/app_list/app_list_model_observer.h" |
#include "ui/app_list/search_box_model.h" |
#include "ui/app_list/search_result.h" |
+#include "ui/base/models/avatar_menu_item_model.h" |
namespace app_list { |
@@ -19,6 +20,7 @@ AppListModel::AppListModel() |
} |
AppListModel::~AppListModel() { |
+ STLDeleteElements(&avatar_menu_items_); |
} |
void AppListModel::AddObserver(AppListModelObserver* observer) { |
@@ -39,4 +41,10 @@ void AppListModel::SetStatus(Status status) { |
OnAppListModelStatusChanged()); |
} |
+void AppListModel::SetCurrentUser(string16 current_user_name, |
+ string16 current_user_email) { |
+ current_user_name_ = current_user_name; |
+ current_user_email_ = current_user_email; |
+} |
+ |
} // namespace app_list |