Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 22825025: Remove SigninDelegateObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove from gyp file Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.h ('k') | chrome/browser/ui/app_list/chrome_signin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698