Index: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h |
diff --git a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h |
index ad0b3da7ba438dfacae6244836d8f9319a8ac51a..0ade5aa923d94f551c81fa4fa3ad05da139bf4fc 100644 |
--- a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h |
+++ b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h |
@@ -10,18 +10,22 @@ |
#include "base/macros.h" |
#include "base/memory/weak_ptr.h" |
#include "base/time/time.h" |
+#include "chrome/browser/chromeos/arc/arc_auth_service.h" |
#include "chrome/browser/ui/app_list/arc/arc_app_icon_loader.h" |
#include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" |
class ArcAppDeferredLauncherItemController; |
class ChromeLauncherControllerImpl; |
-class ArcAppDeferredLauncherController : public ArcAppListPrefs::Observer { |
+class ArcAppDeferredLauncherController : public ArcAppListPrefs::Observer, |
+ public arc::ArcAuthService::Observer { |
public: |
explicit ArcAppDeferredLauncherController( |
ChromeLauncherControllerImpl* owner); |
~ArcAppDeferredLauncherController() override; |
+ bool HasApp(const std::string& app_id) const; |
+ |
base::TimeDelta GetActiveTime(const std::string& app_id) const; |
// Registers deferred Arc app launch. |
@@ -35,6 +39,9 @@ class ArcAppDeferredLauncherController : public ArcAppListPrefs::Observer { |
void OnAppReadyChanged(const std::string& app_id, bool ready) override; |
void OnAppRemoved(const std::string& app_id) override; |
+ // arc::ArcAuthService::Observer: |
+ void OnOptInEnabled(bool enabled) override; |
+ |
// Removes entry from the list of tracking items. |
void Remove(const std::string& app_id); |