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

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

Issue 2323133002: Speed up ARC boot if the user launches ARC app while ARC is not ready (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/ash/launcher/arc_app_deferred_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
index 524356f9532e810c27b3e4face48b78b14aab847..2fc65944f67defccd87330b5e90955e6f4ebd9a9 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc
@@ -214,4 +214,10 @@ void ArcAppDeferredLauncherController::RegisterDeferredLaunch(
RegisterNextUpdate();
app_controller_map_[shelf_app_id] = controller;
+
+ // On some boards, ARC is booted with a restricted set of resources by default
+ // to avoid slowing down Chrome's user session restoration. However, the
+ // restriction should be lifted once the user explicitly tries to launch an
+ // ARC app.
+ arc::PrioritizeArcInstance();
khmel 2016/09/08 23:35:27 nit: Probably it is better to put this into arc_ap
Yusuke Sato 2016/09/09 16:20:12 That's simpler, thanks. Done.
}
« no previous file with comments | « chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h ('k') | chromeos/dbus/fake_session_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698