OLD | NEW |
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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1035 local_state_pref_change_registrar_->Add( | 1035 local_state_pref_change_registrar_->Add( |
1036 prefs::kApplicationLocale, | 1036 prefs::kApplicationLocale, |
1037 base::Bind(&AccessibilityManager::OnLocaleChanged, | 1037 base::Bind(&AccessibilityManager::OnLocaleChanged, |
1038 base::Unretained(this))); | 1038 base::Unretained(this))); |
1039 | 1039 |
1040 content::BrowserAccessibilityState::GetInstance()->AddHistogramCallback( | 1040 content::BrowserAccessibilityState::GetInstance()->AddHistogramCallback( |
1041 base::Bind( | 1041 base::Bind( |
1042 &AccessibilityManager::UpdateChromeOSAccessibilityHistograms, | 1042 &AccessibilityManager::UpdateChromeOSAccessibilityHistograms, |
1043 base::Unretained(this))); | 1043 base::Unretained(this))); |
1044 | 1044 |
1045 chromevox_loader_->SetProfile( | |
1046 profile, base::Bind(&AccessibilityManager::PostSwitchChromeVoxProfile, | |
1047 weak_ptr_factory_.GetWeakPtr())); | |
1048 | |
1049 extensions::ExtensionRegistry* registry = | 1045 extensions::ExtensionRegistry* registry = |
1050 extensions::ExtensionRegistry::Get(profile); | 1046 extensions::ExtensionRegistry::Get(profile); |
1051 if (!extension_registry_observer_.IsObserving(registry)) | 1047 if (!extension_registry_observer_.IsObserving(registry)) |
1052 extension_registry_observer_.Add(registry); | 1048 extension_registry_observer_.Add(registry); |
1053 } | 1049 } |
1054 | 1050 |
1055 large_cursor_pref_handler_.HandleProfileChanged(profile_, profile); | 1051 large_cursor_pref_handler_.HandleProfileChanged(profile_, profile); |
1056 spoken_feedback_pref_handler_.HandleProfileChanged(profile_, profile); | 1052 spoken_feedback_pref_handler_.HandleProfileChanged(profile_, profile); |
1057 high_contrast_pref_handler_.HandleProfileChanged(profile_, profile); | 1053 high_contrast_pref_handler_.HandleProfileChanged(profile_, profile); |
1058 autoclick_pref_handler_.HandleProfileChanged(profile_, profile); | 1054 autoclick_pref_handler_.HandleProfileChanged(profile_, profile); |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 content::BrowserContext* context) { | 1357 content::BrowserContext* context) { |
1362 keyboard_listener_extension_id_ = id; | 1358 keyboard_listener_extension_id_ = id; |
1363 | 1359 |
1364 extensions::ExtensionRegistry* registry = | 1360 extensions::ExtensionRegistry* registry = |
1365 extensions::ExtensionRegistry::Get(context); | 1361 extensions::ExtensionRegistry::Get(context); |
1366 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) | 1362 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) |
1367 extension_registry_observer_.Add(registry); | 1363 extension_registry_observer_.Add(registry); |
1368 } | 1364 } |
1369 | 1365 |
1370 } // namespace chromeos | 1366 } // namespace chromeos |
OLD | NEW |