Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_aura.cc |
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_aura.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_aura.cc |
index f57eebf440bad9622cb5db163537499af084720b..fdbe8818f50f323f33f2a4ad62caa27993722593 100644 |
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_aura.cc |
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_aura.cc |
@@ -27,14 +27,18 @@ BrowserNonClientFrameView* CreateBrowserNonClientFrameView( |
if (ash::Shell::GetInstance()->IsWindowModeCompact()) |
return new CompactBrowserFrameView(frame, browser_view); |
- CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(ash::switches::kAuraTranslucentFrames)) |
- return new BrowserNonClientFrameViewAura(frame, browser_view); |
- |
// If this is an app window and it's maximized, use the special frame_view. |
if (browser_view->browser()->is_app() && browser_view->IsMaximized()) |
return new AppNonClientFrameViewAura(frame, browser_view); |
+ CommandLine* command_line = CommandLine::ForCurrentProcess(); |
+ if (command_line->HasSwitch(ash::switches::kAuraTranslucentFrames)) { |
+ BrowserNonClientFrameViewAura* frame_view = |
+ new BrowserNonClientFrameViewAura(frame, browser_view); |
+ frame_view->Init(); |
+ return frame_view; |
+ } |
+ |
return new OpaqueBrowserFrameView(frame, browser_view); |
} |