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

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

Issue 2330563002: [Merge-M54] arc: Make Play Store item persistent in app list. (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/app_list/arc/arc_app_launcher.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_launcher.cc b/chrome/browser/ui/app_list/arc/arc_app_launcher.cc
index 495d10dcd85806a851b25d556080e46d315ef314..878e244f56a9693f59b7f3f6f2a1512c5596ba92 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_launcher.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_launcher.cc
@@ -16,7 +16,7 @@ ArcAppLauncher::ArcAppLauncher(content::BrowserContext* context,
DCHECK(prefs);
std::unique_ptr<ArcAppListPrefs::AppInfo> app_info = prefs->GetApp(app_id_);
- if (app_info)
+ if (app_info && app_info->ready)
LaunchApp();
else
prefs->AddObserver(this);
@@ -34,7 +34,12 @@ ArcAppLauncher::~ArcAppLauncher() {
void ArcAppLauncher::OnAppRegistered(
const std::string& app_id,
const ArcAppListPrefs::AppInfo& app_info) {
- if (app_id == app_id_)
+ if (app_id == app_id_ && app_info.ready)
+ LaunchApp();
+}
+
+void ArcAppLauncher::OnAppReadyChanged(const std::string& app_id, bool ready) {
+ if (app_id == app_id_ && ready)
LaunchApp();
}
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_launcher.h ('k') | chrome/browser/ui/app_list/arc/arc_app_list_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698