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

Unified Diff: ash/shell.h

Issue 2772673002: mash: switch to the new pref service (Closed)
Patch Set: Address review comments Created 3 years, 9 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 | « ash/mus/manifest.json ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 343af630921b20b4267869fcff45ed9de47d5453..5d4c4961b1ec868723b39297d6bd2b031bb601aa 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -25,6 +25,8 @@
#include "ui/wm/core/cursor_manager.h"
#include "ui/wm/public/activation_change_observer.h"
+class PrefService;
+
namespace aura {
class RootWindow;
class UserActivityForwarder;
@@ -58,10 +60,6 @@ namespace gfx {
class Insets;
}
-namespace preferences {
-class PrefClientStore;
-}
-
namespace ui {
class UserActivityDetector;
class UserActivityPowerManagerNotifier;
@@ -360,7 +358,7 @@ class ASH_EXPORT Shell : public SessionStateObserver,
LockStateController* lock_state_controller() {
return lock_state_controller_.get();
}
- preferences::PrefClientStore* pref_store() { return pref_store_.get(); }
+ PrefService* pref_service() { return pref_service_.get(); }
PaletteDelegate* palette_delegate() { return palette_delegate_.get(); }
ShellDelegate* shell_delegate() { return shell_delegate_.get(); }
VideoDetector* video_detector() { return video_detector_.get(); }
@@ -625,6 +623,9 @@ class ASH_EXPORT Shell : public SessionStateObserver,
// SessionStateObserver:
void SessionStateChanged(session_manager::SessionState state) override;
+ // Callback for prefs::ConnectToPrefService.
+ void OnPrefServiceInitialized(std::unique_ptr<::PrefService> pref_service);
+
static Shell* instance_;
// Only valid in mash, for classic ash this is null.
@@ -678,7 +679,7 @@ class ASH_EXPORT Shell : public SessionStateObserver,
std::unique_ptr<::wm::VisibilityController> visibility_controller_;
std::unique_ptr<::wm::WindowModalityController> window_modality_controller_;
std::unique_ptr<app_list::AppList> app_list_;
- scoped_refptr<preferences::PrefClientStore> pref_store_;
+ std::unique_ptr<::PrefService> pref_service_;
std::unique_ptr<ui::devtools::UiDevToolsServer> devtools_server_;
std::unique_ptr<views::corewm::TooltipController> tooltip_controller_;
LinkHandlerModelFactory* link_handler_model_factory_;
« no previous file with comments | « ash/mus/manifest.json ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698