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

Side by Side Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 23179002: Update the app launcher menu on profile name change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@le_refactor_gigante_signin_into_model
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void AppListViewDelegate::OnSigninSuccess() { 225 void AppListViewDelegate::OnSigninSuccess() {
226 OnProfileChanged(); 226 OnProfileChanged();
227 } 227 }
228 228
229 void AppListViewDelegate::Observe( 229 void AppListViewDelegate::Observe(
230 int type, 230 int type,
231 const content::NotificationSource& source, 231 const content::NotificationSource& source,
232 const content::NotificationDetails& details) { 232 const content::NotificationDetails& details) {
233 OnProfileChanged(); 233 OnProfileChanged();
234 } 234 }
235
236 void AppListViewDelegate::OnProfileAdded(const base::FilePath& profile_path) {
237 OnProfileChanged();
238 }
239
240 void AppListViewDelegate::OnProfileWillBeRemoved(
241 const base::FilePath& profile_path) {
242 OnProfileChanged();
243 }
244
245 void AppListViewDelegate::OnProfileNameChanged(
246 const base::FilePath& profile_path,
247 const string16& old_profile_name) {
248 OnProfileChanged();
249 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698