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

Unified Diff: ash/ash_switches.cc

Issue 25536010: Make packaged apps use AppNonClientFrameViewAsh when maximized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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: 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);

Powered by Google App Engine
This is Rietveld 408576698