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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 2827193004: Make PrefService available in *ash (Closed)
Patch Set: Adding NOTREACHED() comment. Created 3 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698