Index: ash/ash_switches.cc |
diff --git a/ash/ash_switches.cc b/ash/ash_switches.cc |
index 4242373e66d2ec3c3a34f8465c3b07de80fd7597..d185d7a7331851ebe1275c845b1153d64f521c3a 100644 |
--- a/ash/ash_switches.cc |
+++ b/ash/ash_switches.cc |
@@ -184,6 +184,10 @@ const char kHideShelfAlignmentMenu[] = "hide-launcher-alignment-menu"; |
const char kAshUseFirstDisplayAsInternal[] = |
"ash-use-first-display-as-internal"; |
+// Use the same window frame for hosted and packaged apps. |
+const char kAshUseSameFrameForV1AndV2Apps[] = |
+ "ash-use-same-frame-for-v1-and-v2-apps"; |
+ |
// (Most) Chrome OS hardware reports ACPI power button releases correctly. |
// Standard hardware reports releases immediately after presses. If set, we |
// lock the screen or shutdown the system immediately in response to a press |
@@ -220,6 +224,11 @@ bool UseDragOffShelf() { |
HasSwitch(kAshDisableDragOffShelf); |
} |
+bool UseSameFrameForV1AndV2Apps() { |
+ return CommandLine::ForCurrentProcess()-> |
+ HasSwitch(kAshUseSameFrameForV1AndV2Apps); |
+} |
+ |
bool ShowShelfAlignmentMenu() { |
return !CommandLine::ForCurrentProcess()-> |
HasSwitch(kHideShelfAlignmentMenu); |