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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 1428213004: This CL replaces std::string user_id in ash/* with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chromeos/accessibility/accessibility_manager.h" 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
6 6
7 #include "ash/audio/sounds.h" 7 #include "ash/audio/sounds.h"
8 #include "ash/autoclick/autoclick_controller.h" 8 #include "ash/autoclick/autoclick_controller.h"
9 #include "ash/high_contrast/high_contrast_controller.h" 9 #include "ash/high_contrast/high_contrast_controller.h"
10 #include "ash/metrics/user_metrics_recorder.h" 10 #include "ash/metrics/user_metrics_recorder.h"
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 UpdateBrailleImeState(); 948 UpdateBrailleImeState();
949 UpdateLargeCursorFromPref(); 949 UpdateLargeCursorFromPref();
950 UpdateStickyKeysFromPref(); 950 UpdateStickyKeysFromPref();
951 UpdateSpokenFeedbackFromPref(); 951 UpdateSpokenFeedbackFromPref();
952 UpdateHighContrastFromPref(); 952 UpdateHighContrastFromPref();
953 UpdateAutoclickFromPref(); 953 UpdateAutoclickFromPref();
954 UpdateAutoclickDelayFromPref(); 954 UpdateAutoclickDelayFromPref();
955 UpdateVirtualKeyboardFromPref(); 955 UpdateVirtualKeyboardFromPref();
956 } 956 }
957 957
958 void AccessibilityManager::ActiveUserChanged(const std::string& user_id) { 958 void AccessibilityManager::ActiveUserChanged(const AccountId& account_id) {
959 SetProfile(ProfileManager::GetActiveUserProfile()); 959 SetProfile(ProfileManager::GetActiveUserProfile());
960 } 960 }
961 961
962 void AccessibilityManager::OnAppTerminating() { 962 void AccessibilityManager::OnAppTerminating() {
963 session_state_observer_.reset(); 963 session_state_observer_.reset();
964 } 964 }
965 965
966 void AccessibilityManager::SetProfileForTest(Profile* profile) { 966 void AccessibilityManager::SetProfileForTest(Profile* profile) {
967 SetProfile(profile); 967 SetProfile(profile);
968 } 968 }
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 1142
1143 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { 1143 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) {
1144 // Do any teardown work needed immediately after ChromeVox actually unloads. 1144 // Do any teardown work needed immediately after ChromeVox actually unloads.
1145 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); 1145 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED);
1146 // Clear the accessibility focus ring. 1146 // Clear the accessibility focus ring.
1147 AccessibilityFocusRingController::GetInstance()->SetFocusRing( 1147 AccessibilityFocusRingController::GetInstance()->SetFocusRing(
1148 std::vector<gfx::Rect>()); 1148 std::vector<gfx::Rect>());
1149 } 1149 }
1150 1150
1151 } // namespace chromeos 1151 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698