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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_launcher.h

Issue 2751913004: arc: Fix race conditon when Play Store is started too early. (Closed)
Patch Set: nits 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
Index: chrome/browser/ui/app_list/arc/arc_app_launcher.h
diff --git a/chrome/browser/ui/app_list/arc/arc_app_launcher.h b/chrome/browser/ui/app_list/arc/arc_app_launcher.h
index 613ad2bdf463ce73c2a407c78c44f5c3f087a857..3043ff0c69da796fc8c1720e7f84ad5f6f49291b 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_launcher.h
+++ b/chrome/browser/ui/app_list/arc/arc_app_launcher.h
@@ -20,7 +20,8 @@ class ArcAppLauncher : public ArcAppListPrefs::Observer {
public:
ArcAppLauncher(content::BrowserContext* context,
const std::string& app_id,
- bool landscape_layout);
+ bool landscape_layout,
+ bool deferred_launch_allowed);
~ArcAppLauncher() override;
bool app_launched() const { return app_launched_; }
@@ -38,7 +39,11 @@ class ArcAppLauncher : public ArcAppListPrefs::Observer {
// ARC app id and requested layout.
const std::string app_id_;
const bool landscape_layout_;
- // Flag idicating that ARC app was launched.
+ // If it is set to true that means app is allowed to launch in deferred mode
+ // once it is registered, regardless it is ready or not. Otherwise app is
+ // launched when it becomes ready.
+ const bool deferred_launch_allowed_;
+ // Flag indicating that ARC app was launched.
bool app_launched_ = false;
DISALLOW_COPY_AND_ASSIGN(ArcAppLauncher);
« no previous file with comments | « chrome/browser/chromeos/arc/arc_session_manager.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698