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

Unified Diff: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h

Issue 2322353002: [Merge-M53] arc: Add support of default and OEM apps. (Closed)
Patch Set: Created 4 years, 3 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: 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:

Powered by Google App Engine
This is Rietveld 408576698