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

Unified Diff: trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc

Issue 276773004: Revert 269892 "linux_aura: Compile ash into chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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: trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
===================================================================
--- trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc (revision 269901)
+++ trunk/src/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc (working copy)
@@ -24,7 +24,6 @@
#include "chrome/browser/ui/libgtk2ui/gtk2_ui.h"
#include "chrome/common/pref_names.h"
#include "ui/aura/window.h"
-#include "ui/base/ime/input_method_initializer.h"
#include "ui/native_theme/native_theme_aura.h"
#include "ui/views/linux_ui/linux_ui.h"
#endif
@@ -71,12 +70,7 @@
command_line->HasSwitch(switches::kViewerLaunchViaAppId)) {
return chrome::HOST_DESKTOP_TYPE_ASH;
}
-#elif defined(OS_LINUX)
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kOpenAsh))
- return chrome::HOST_DESKTOP_TYPE_ASH;
#endif
-
return chrome::HOST_DESKTOP_TYPE_NATIVE;
}
#endif // !defined(OS_CHROMEOS) && defined(USE_ASH)
@@ -91,16 +85,10 @@
void ChromeBrowserMainExtraPartsAura::PreEarlyInitialization() {
#if defined(USE_X11) && !defined(OS_CHROMEOS)
- if (GetInitialDesktop() != chrome::HOST_DESKTOP_TYPE_ASH) {
- // TODO(erg): Refactor this into a dlopen call when we add a GTK3 port.
- views::LinuxUI* gtk2_ui = BuildGtk2UI();
- gtk2_ui->SetNativeThemeOverride(base::Bind(&GetNativeThemeForWindow));
- views::LinuxUI::SetInstance(gtk2_ui);
- } else {
- // TODO(erg): Eventually, we'll need to somehow support IMEs in ash on
- // Linux.
- ui::InitializeInputMethodForTesting();
- }
+ // TODO(erg): Refactor this into a dlopen call when we add a GTK3 port.
+ views::LinuxUI* gtk2_ui = BuildGtk2UI();
+ gtk2_ui->SetNativeThemeOverride(base::Bind(&GetNativeThemeForWindow));
+ views::LinuxUI::SetInstance(gtk2_ui);
#endif
}
@@ -113,8 +101,7 @@
#endif
#if defined(USE_X11) && !defined(OS_CHROMEOS)
- if (GetInitialDesktop() != chrome::HOST_DESKTOP_TYPE_ASH)
- views::LinuxUI::instance()->Initialize();
+ views::LinuxUI::instance()->Initialize();
#endif
}
« no previous file with comments | « trunk/src/chrome/browser/ui/ash/user_wallpaper_delegate_win.cc ('k') | trunk/src/chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698