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

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: leak in CustomFrameViewAsh 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
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/wm/custom_frame_view_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 1041a3dca9a50ecf3f495b991bf89648d1935c41..f37f2f7f1d9e51db428304a0e4b6b32079de5d89 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -589,8 +589,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;
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/wm/custom_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698