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

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

Issue 2707133006: Start ARC and sign in after Chrome OS login (Closed)
Patch Set: Created 3 years, 10 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_utils.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_utils.cc b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
index 188178440bb0e7a94ab85d7a1372dab6a179beff..ae889a345ad4a5351c1ee046630247e7425beae4 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_utils.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
@@ -269,7 +269,11 @@ bool LaunchApp(content::BrowserContext* context,
DCHECK(arc_session_manager);
bool arc_activated = false;
- if (!arc_session_manager->IsArcPlayStoreEnabled()) {
+ if (arc_session_manager->IsPersistentArc()) {
hidehiko 2017/02/23 10:29:16 If Play Store is not yet enabled, I think it is st
hidehiko 2017/02/23 10:29:16 nit: Could you elide the brace?
victorhsieh 2017/02/24 00:45:00 Right. There won't be apps from Play Store in opt
victorhsieh 2017/02/25 00:21:33 Seems like there is an unlikely edge case when app
+ arc_activated = true;
+ }
+
+ if (!arc_activated && !arc_session_manager->IsArcPlayStoreEnabled()) {
if (!prefs->IsDefault(app_id)) {
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698