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

Unified Diff: chrome/browser/ui/views/frame/browser_frame.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
Index: chrome/browser/ui/views/frame/browser_frame.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame.cc b/chrome/browser/ui/views/frame/browser_frame.cc
index f5ab38dcd3dac1fb6541f2ce411645724323de27..58e35543b1e46f9e79e5132e6875320271de1950 100644
--- a/chrome/browser/ui/views/frame/browser_frame.cc
+++ b/chrome/browser/ui/views/frame/browser_frame.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/ui/views/frame/browser_frame.h"
-#include "base/command_line.h"
#include "base/i18n/rtl.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
@@ -79,8 +78,8 @@ void BrowserFrame::InitBrowserFrame() {
#endif
}
#if defined(USE_AURA)
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(ash::switches::kAuraTranslucentFrames))
+ // Compact mode has opaque frames, otherwise Aura frames are translucent.
+ if (!ash::Shell::GetInstance()->IsWindowModeCompact())
params.transparent = true;
// Aura compact mode fills the monitor with with its windows.
if (ash::Shell::GetInstance()->IsWindowModeCompact() &&

Powered by Google App Engine
This is Rietveld 408576698