Index: chrome/browser/ui/ash/chrome_shell_delegate.cc |
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc |
index b92e0969832413504207ae2117c2d6a7ba358412..b014dd05605723bcc3cc8f4943dea29f972067ec 100644 |
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc |
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc |
@@ -558,6 +558,15 @@ gfx::Image ChromeShellDelegate::GetDeprecatedAcceleratorImage() const { |
IDR_BLUETOOTH_KEYBOARD); |
} |
+PrefService* ChromeShellDelegate::GetActiveUserPrefService() const { |
+ const user_manager::User* const user = |
+ user_manager::UserManager::Get()->GetActiveUser(); |
+ return user ? chromeos::ProfileHelper::Get() |
+ ->GetProfileByUser(user) |
+ ->GetPrefs() |
+ : nullptr; |
+} |
+ |
bool ChromeShellDelegate::IsTouchscreenEnabledInPrefs( |
bool use_local_state) const { |
return chromeos::system::InputDeviceSettings::Get() |