| 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/browser_command_controller.h" | 5 #include "chrome/browser/ui/browser_command_controller.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/defaults.h" | 10 #include "chrome/browser/defaults.h" |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 const base::FilePath& profile_path) { | 714 const base::FilePath& profile_path) { |
| 715 UpdateCommandsForMultipleProfiles(); | 715 UpdateCommandsForMultipleProfiles(); |
| 716 } | 716 } |
| 717 | 717 |
| 718 void BrowserCommandController::OnProfileWasRemoved( | 718 void BrowserCommandController::OnProfileWasRemoved( |
| 719 const base::FilePath& profile_path, | 719 const base::FilePath& profile_path, |
| 720 const string16& profile_name) { | 720 const string16& profile_name) { |
| 721 UpdateCommandsForMultipleProfiles(); | 721 UpdateCommandsForMultipleProfiles(); |
| 722 } | 722 } |
| 723 | 723 |
| 724 void BrowserCommandController::OnProfileWillBeRemoved( | |
| 725 const base::FilePath& profile_path) { | |
| 726 } | |
| 727 | |
| 728 void BrowserCommandController::OnProfileNameChanged( | |
| 729 const base::FilePath& profile_path, | |
| 730 const string16& old_profile_name) { | |
| 731 } | |
| 732 | |
| 733 void BrowserCommandController::OnProfileAvatarChanged( | |
| 734 const base::FilePath& profile_path) { | |
| 735 } | |
| 736 | |
| 737 //////////////////////////////////////////////////////////////////////////////// | 724 //////////////////////////////////////////////////////////////////////////////// |
| 738 // BrowserCommandController, SigninPrefObserver implementation: | 725 // BrowserCommandController, SigninPrefObserver implementation: |
| 739 | 726 |
| 740 void BrowserCommandController::OnSigninAllowedPrefChange() { | 727 void BrowserCommandController::OnSigninAllowedPrefChange() { |
| 741 // For unit tests, we don't have a window. | 728 // For unit tests, we don't have a window. |
| 742 if (!window()) | 729 if (!window()) |
| 743 return; | 730 return; |
| 744 UpdateShowSyncState(IsShowingMainUI()); | 731 UpdateShowSyncState(IsShowingMainUI()); |
| 745 } | 732 } |
| 746 | 733 |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 | 1251 |
| 1265 BrowserWindow* BrowserCommandController::window() { | 1252 BrowserWindow* BrowserCommandController::window() { |
| 1266 return browser_->window(); | 1253 return browser_->window(); |
| 1267 } | 1254 } |
| 1268 | 1255 |
| 1269 Profile* BrowserCommandController::profile() { | 1256 Profile* BrowserCommandController::profile() { |
| 1270 return browser_->profile(); | 1257 return browser_->profile(); |
| 1271 } | 1258 } |
| 1272 | 1259 |
| 1273 } // namespace chrome | 1260 } // namespace chrome |
| OLD | NEW |