| 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() &&
|
|
|