Index: chrome/browser/ui/app_list/app_list_view_delegate.cc |
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
index 699697c4dfdd03863856e1ac6d514cc282bd8331..e53fa9bdd092c35d14cd52b1973d63fc9a93da9b 100644 |
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc |
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
@@ -69,8 +69,6 @@ AppListViewDelegate::AppListViewDelegate(AppListControllerDelegate* controller, |
} |
AppListViewDelegate::~AppListViewDelegate() { |
- if (signin_delegate_) |
- signin_delegate_->RemoveObserver(this); |
g_browser_process-> |
profile_manager()->GetProfileInfoCache().RemoveObserver(this); |
} |
@@ -91,8 +89,6 @@ void AppListViewDelegate::OnProfileChanged() { |
} |
void AppListViewDelegate::SetModel(app_list::AppListModel* model) { |
- if (signin_delegate_) |
- signin_delegate_->RemoveObserver(this); |
if (model) { |
model_ = model; |
apps_builder_.reset(new AppsModelBuilder(profile_, |
@@ -104,7 +100,6 @@ void AppListViewDelegate::SetModel(app_list::AppListModel* model) { |
profile_, model->search_box(), model->results(), controller_.get())); |
signin_delegate_.reset(new ChromeSigninDelegate(profile_)); |
- signin_delegate_->AddObserver(this); |
#if defined(USE_ASH) |
app_sync_ui_state_watcher_.reset(new AppSyncUIStateWatcher(profile_, |
@@ -225,10 +220,6 @@ void AppListViewDelegate::OpenFeedback() { |
chrome::kAppLauncherCategoryTag); |
} |
-void AppListViewDelegate::OnSigninSuccess() { |
- OnProfileChanged(); |
-} |
- |
void AppListViewDelegate::Observe( |
int type, |
const content::NotificationSource& source, |