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

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

Issue 2496903003: arc: Add Arc Kiosk app service and ability to launch kiosk apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policy_comp_parse
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698