| Index: components/arc/arc_service_manager.h
|
| diff --git a/components/arc/arc_service_manager.h b/components/arc/arc_service_manager.h
|
| index 3dd7740e3719987868c8a711e8a4e93f1f37f54b..f00917d009f38ffa2f12f2be7b894c8886d63fff 100644
|
| --- a/components/arc/arc_service_manager.h
|
| +++ b/components/arc/arc_service_manager.h
|
| @@ -6,18 +6,21 @@
|
| #define COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_
|
|
|
| #include <memory>
|
| +#include <string>
|
| #include <vector>
|
|
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/task_runner.h"
|
| #include "base/threading/thread_checker.h"
|
| +#include "components/prefs/pref_member.h"
|
| #include "components/signin/core/account_id/account_id.h"
|
|
|
| namespace arc {
|
|
|
| class ArcBridgeService;
|
| class ArcService;
|
| +class ArcUserDataService;
|
|
|
| // Manages creation and destruction of services that communicate with the ARC
|
| // instance via the ArcBridgeService.
|
| @@ -39,7 +42,12 @@ class ArcServiceManager {
|
| static ArcServiceManager* Get();
|
|
|
| // Called when the main profile is initialized after user logs in.
|
| - void OnPrimaryUserProfilePrepared(const AccountId& account_id);
|
| + void OnPrimaryUserProfilePrepared(
|
| + const AccountId& account_id,
|
| + std::unique_ptr<BooleanPrefMember> arc_enabled_pref);
|
| +
|
| + // Has the user enabled ARC in their preferences?
|
| + bool IsArcEnabled() const;
|
|
|
| // Called once the windowing system (ash) has been started.
|
| void OnAshStarted();
|
| @@ -62,11 +70,15 @@ class ArcServiceManager {
|
|
|
| std::unique_ptr<ArcBridgeService> arc_bridge_service_;
|
| std::vector<std::unique_ptr<ArcService>> services_;
|
| + std::unique_ptr<ArcUserDataService> arc_user_data_service_;
|
|
|
| // True once the window manager service got added, barring adding any more
|
| // of those since OnAshStarted() might be called multiple times.
|
| bool on_ash_started_called_ = false;
|
|
|
| + // User preference indicating whether or not ARC has been enabled.
|
| + std::unique_ptr<BooleanPrefMember> arc_enabled_pref_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ArcServiceManager);
|
| };
|
|
|
|
|