| 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 {
|
|
|