Chromium Code Reviews| 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 4eb8d1e26b10f8f604ef6c2c45be3131da9a6fce..f1b33788b9c257fab64712e0a9a89483d26e57f6 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 |
| @@ -30,10 +30,11 @@ ArcPlaystoreShortcutLauncherItemController::Activate(ash::LaunchSource source) { |
| DCHECK(arc_app_prefs); |
| DCHECK(auth_service->IsAllowed()); |
| + const bool arc_was_enabled = auth_service->IsArcEnabled(); |
| auth_service->EnableArc(); |
| // Deferred launcher. |
| - if (arc_app_prefs->IsRegistered(arc::kPlayStoreAppId)) { |
| + if (arc_app_prefs->IsRegistered(arc::kPlayStoreAppId) && arc_was_enabled) { |
|
khmel
2016/09/19 16:49:12
This fix UI glitch after making PlayStore as persi
|
| // Known apps can be launched directly or deferred. |
| arc::LaunchApp(controller()->GetProfile(), arc::kPlayStoreAppId, true); |
| } else { |