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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 7850026: Aura under Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: White spaces Created 9 years, 3 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 3be52ca15070723586f9dd5dd6f79025e2c3b15f..c334f0cd26bb6e4d2f29b19a5526690b0e936bcd 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -151,7 +151,6 @@
// progress and should not be taken as an indication of a real refactoring.
#if defined(OS_WIN)
-
#include "base/environment.h" // For PreRead experiment.
#include "base/win/windows_version.h"
#include "chrome/browser/browser_trial.h"
@@ -1327,6 +1326,10 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunInternal() {
if (!parsed_command_line().HasSwitch(switches::kViewsDesktop))
CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kViewsDesktop,
"other");
+#elif defined(USE_AURA) && defined(OS_LINUX)
+ // Always add the --views-desktop flag, if not already set.
+ if (!parsed_command_line().HasSwitch(switches::kViewsDesktop))
+ CommandLine::ForCurrentProcess()->AppendSwitch(switches::kViewsDesktop);
#endif
// Convert active labs into switches. Modifies the current command line.

Powered by Google App Engine
This is Rietveld 408576698