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

Unified Diff: ash/shell.cc

Issue 2827193004: Make PrefService available in *ash (Closed)
Patch Set: 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
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 9bc373d2203cccc5bd689a37ffd133162aae4285..7e42d78b5736f92d52b78a8e79c452fd5a8d4f2e 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -376,6 +376,13 @@ void Shell::UpdateShelfVisibility() {
root->GetRootWindowController()->GetShelf()->UpdateVisibilityState();
}
+PrefService* Shell::GetActiveUserPrefService() const {
+ if (shell_port_->GetAshConfig() == Config::MASH)
+ return pref_service_.get();
+
+ return shell_delegate_->GetActiveUserPrefService();
+}
+
WebNotificationTray* Shell::GetWebNotificationTray() {
return GetPrimaryRootWindowController()
->GetStatusAreaWidget()
« ash/shell.h ('K') | « ash/shell.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698