| Index: chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
| index e5815f08d4562948d935dae40b13a770c9d4870a..3bc7f687332e6d68f1cc7fb32914085da56275b4 100644
|
| --- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
| +++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
| @@ -88,18 +88,6 @@ blink::WebScreenOrientationLockType BlinkOrientationLockFromMojom(
|
| }
|
| }
|
|
|
| -int GetWindowTaskId(aura::Window* window) {
|
| - const std::string arc_app_id = exo::ShellSurface::GetApplicationId(window);
|
| - if (arc_app_id.empty())
|
| - return -1;
|
| -
|
| - int task_id = -1;
|
| - if (sscanf(arc_app_id.c_str(), "org.chromium.arc.%d", &task_id) != 1)
|
| - return -1;
|
| -
|
| - return task_id;
|
| -}
|
| -
|
| } // namespace
|
|
|
| // The information about the arc application window which has to be kept
|
| @@ -723,3 +711,16 @@ void ArcAppWindowLauncherController::SetOrientationLockForAppWindow(
|
| shell->screen_orientation_controller()->LockOrientationForWindow(
|
| window, BlinkOrientationLockFromMojom(orientation_lock));
|
| }
|
| +
|
| +// static
|
| +int ArcAppWindowLauncherController::GetWindowTaskId(aura::Window* window) {
|
| + const std::string arc_app_id = exo::ShellSurface::GetApplicationId(window);
|
| + if (arc_app_id.empty())
|
| + return -1;
|
| +
|
| + int task_id = -1;
|
| + if (sscanf(arc_app_id.c_str(), "org.chromium.arc.%d", &task_id) != 1)
|
| + return -1;
|
| +
|
| + return task_id;
|
| +}
|
|
|