Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 12903fac6a50f03005c82261335a1adc41aa3ae0..d3bc698729db30b2fd03a7f2b871ebf97ad72b3b 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -915,9 +915,11 @@ int BrowserMainLoop::PreMainMessageLoopRun() { |
if (IsRunningInMojoShell()) { |
MojoShellConnectionImpl::Create(); |
#if defined(USE_AURA) |
+#if defined(TOOLKIT_VIEWS) |
views::WindowManagerConnection::Create( |
MojoShellConnection::Get()->GetApplication()); |
#endif |
+#endif |
} |
#endif |