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

Unified Diff: ash/shell.cc

Issue 9618022: Ash: Use translucent frames by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 32f789794c8211e15da2fb15f2f3b92dd3ff73e5..bbd3410ccdb1ceed028eaba53520bab417baff0a 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -584,8 +584,8 @@ views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView(
switches::kAuraGoogleDialogFrames)) {
return new internal::DialogFrameView;
}
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAuraTranslucentFrames)) {
+ // Normal non-compact-mode gets translucent-style window frames for dialogs.
+ if (!IsWindowModeCompact()) {
internal::CustomFrameViewAsh* frame_view = new internal::CustomFrameViewAsh;
frame_view->Init(widget);
return frame_view;

Powered by Google App Engine
This is Rietveld 408576698