OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |