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

Unified Diff: chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc

Issue 2707133006: Start ARC and sign in after Chrome OS login (Closed)
Patch Set: LaunchApp 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/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc
index f0afccabc750f6a8c70139531014e1f02234967f..20ab9ffe65fb540be54babfca8cca3fb63f9bab4 100644
--- a/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc
@@ -34,11 +34,13 @@ ash::ShelfAction ArcPlaystoreShortcutLauncherItemController::ItemSelected(
ArcAppListPrefs::Get(controller()->profile());
DCHECK(arc_app_prefs);
- const bool arc_was_enabled = arc_session_manager->IsArcPlayStoreEnabled();
+ const bool play_store_was_enabled =
+ arc_session_manager->IsArcPlayStoreEnabled();
arc_session_manager->SetArcPlayStoreEnabled(true);
// Deferred launcher.
- if (arc_app_prefs->IsRegistered(arc::kPlayStoreAppId) && arc_was_enabled) {
+ if (arc_app_prefs->IsRegistered(arc::kPlayStoreAppId) &&
+ play_store_was_enabled) {
// Known apps can be launched directly or deferred.
arc::LaunchApp(controller()->profile(), arc::kPlayStoreAppId, true);
} else {

Powered by Google App Engine
This is Rietveld 408576698