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 5fe37ac2d49b06bd433c5d4bdbc6728b490193a0..bcd08ba3fe8941c533931eb9d3581d66358fb8e4 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,8 +39,14 @@ class ArcAppDeferredLauncherController : public ArcAppListPrefs::Observer { |
void OnAppReadyChanged(const std::string& app_id, bool ready) override; |
void OnAppRemoved(const std::string& app_id) override; |
- // Close Shelf item if it has ArcAppDeferredLauncherItemController controller |
- // and remove entry from the list of tracking items. |
+ // arc::ArcAuthService::Observer: |
+ void OnOptInEnabled(bool enabled) override; |
+ |
+ // Removes entry from the list of tracking items. |
+ void Remove(const std::string& app_id); |
+ |
+ // Closes Shelf item if it has ArcAppDeferredLauncherItemController controller |
+ // and removes entry from the list of tracking items. |
void Close(const std::string& app_id); |
private: |