| 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 799794407cd791189f7b47479a7fc99b8296902c..3e904140b8e3227ef734626d68d42d61e2e3f056 100644
|
| --- a/chrome/browser/ui/app_list/arc/arc_app_utils.cc
|
| +++ b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
|
| @@ -335,12 +335,7 @@ bool LaunchApp(content::BrowserContext* context,
|
| // 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.
|
| - VLOG(2) << "Prioritizing the instance";
|
| - chromeos::SessionManagerClient* session_manager_client =
|
| - chromeos::DBusThreadManager::Get()->GetSessionManagerClient();
|
| - session_manager_client->SetArcCpuRestriction(
|
| - login_manager::CONTAINER_CPU_RESTRICTION_FOREGROUND,
|
| - base::Bind(SetArcCpuRestrictionCallback));
|
| + PrioritizeArcContainerStartup();
|
| }
|
| prefs->SetLastLaunchTime(app_id, base::Time::Now());
|
| return true;
|
| @@ -476,4 +471,13 @@ bool IsArcItem(content::BrowserContext* context, const std::string& id) {
|
| return arc_prefs->IsRegistered(ArcAppShelfId::FromString(id).app_id());
|
| }
|
|
|
| +void PrioritizeArcContainerStartup() {
|
| + VLOG(2) << "Prioritizing the instance";
|
| + chromeos::SessionManagerClient* session_manager_client =
|
| + chromeos::DBusThreadManager::Get()->GetSessionManagerClient();
|
| + session_manager_client->SetArcCpuRestriction(
|
| + login_manager::CONTAINER_CPU_RESTRICTION_FOREGROUND,
|
| + base::Bind(SetArcCpuRestrictionCallback));
|
| +}
|
| +
|
| } // namespace arc
|
|
|