| Index: ui/app_list/views/app_list_view.cc
|
| diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
|
| index a74e6e94d6af189403d8e084fd5f3b78d61dc7f9..7df743ac146a294303adf7258fa18d0a4842f45e 100644
|
| --- a/ui/app_list/views/app_list_view.cc
|
| +++ b/ui/app_list/views/app_list_view.cc
|
| @@ -54,7 +54,7 @@ AppListView::AppListView(AppListViewDelegate* delegate)
|
| app_list_main_view_(NULL),
|
| signin_view_(NULL) {
|
| if (delegate_)
|
| - delegate_->SetModel(model_.get());
|
| + delegate_->InitModel(model_.get());
|
| model_->AddObserver(this);
|
| }
|
|
|
| @@ -82,7 +82,8 @@ void AppListView::InitAsBubble(gfx::NativeView parent,
|
| #endif
|
|
|
| signin_view_ = new SigninView(
|
| - GetSigninDelegate(),
|
| + delegate_ ? delegate_->GetSigninDelegate()
|
| + : NULL,
|
| app_list_main_view_->GetPreferredSize().width());
|
| AddChildView(signin_view_);
|
|
|
| @@ -188,6 +189,10 @@ void AppListView::OnSigninStatusChanged() {
|
| app_list_main_view_->search_box_view()->InvalidateMenu();
|
| }
|
|
|
| +void AppListView::SetProfileByPath(const base::FilePath& profile_path) {
|
| + delegate_->SetProfileByPath(profile_path);
|
| +}
|
| +
|
| void AppListView::AddObserver(Observer* observer) {
|
| observers_.AddObserver(observer);
|
| }
|
| @@ -287,15 +292,11 @@ void AppListView::OnWidgetVisibilityChanged(views::Widget* widget,
|
| Layout();
|
| }
|
|
|
| -SigninDelegate* AppListView::GetSigninDelegate() {
|
| - return delegate_ ? delegate_->GetSigninDelegate() : NULL;
|
| -}
|
| -
|
| void AppListView::OnAppListModelSigninStatusChanged() {
|
| OnSigninStatusChanged();
|
| }
|
|
|
| -void AppListView::OnAppListModelCurrentUserChanged() {
|
| +void AppListView::OnAppListModelUsersChanged() {
|
| OnSigninStatusChanged();
|
| }
|
|
|
|
|