| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 225fc5afb5ca06ad26dc2c2a88a873dce968baea..f6eff68a4ba11e75b1ad5673ddf75b7211bc71ac 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -32,8 +32,6 @@
|
| #include "chrome/browser/background/background_mode_manager.h"
|
| #include "chrome/browser/browser_process_impl.h"
|
| #include "chrome/browser/browser_shutdown.h"
|
| -#include "chrome/browser/chrome_browser_main_gtk.h"
|
| -#include "chrome/browser/chrome_browser_main_win.h"
|
| #include "chrome/browser/defaults.h"
|
| #include "chrome/browser/extensions/default_apps_trial.h"
|
| #include "chrome/browser/extensions/extension_protocols.h"
|
| @@ -120,10 +118,6 @@
|
| #include "chrome/app/breakpad_linux.h"
|
| #endif
|
|
|
| -#if defined(TOOLKIT_USES_GTK)
|
| -#include "chrome/browser/ui/gtk/gtk_util.h"
|
| -#endif
|
| -
|
| #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
| #include "chrome/browser/first_run/upgrade_util_linux.h"
|
| #endif
|
| @@ -159,6 +153,7 @@
|
| #include "base/win/windows_version.h"
|
| #include "chrome/browser/browser_trial.h"
|
| #include "chrome/browser/browser_util_win.h"
|
| +#include "chrome/browser/chrome_browser_main_win.h"
|
| #include "chrome/browser/first_run/try_chrome_dialog_view.h"
|
| #include "chrome/browser/first_run/upgrade_util_win.h"
|
| #include "chrome/browser/fragmentation_checker_win.h"
|
| @@ -193,6 +188,7 @@
|
| #endif
|
|
|
| #if defined(TOOLKIT_USES_GTK)
|
| +#include "chrome/browser/ui/gtk/gtk_util.h"
|
| #include "ui/gfx/gtk_util.h"
|
| #endif
|
|
|
| @@ -200,6 +196,10 @@
|
| #include "ui/base/touch/touch_factory.h"
|
| #endif
|
|
|
| +#if defined(USE_X11)
|
| +#include "chrome/browser/chrome_browser_main_x11.h"
|
| +#endif
|
| +
|
| #if defined(USE_AURA)
|
| #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h"
|
| #include "ui/aura/desktop.h"
|
| @@ -1466,7 +1466,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunInternal() {
|
|
|
| if (parsed_command_line().HasSwitch(switches::kHideIcons) ||
|
| parsed_command_line().HasSwitch(switches::kShowIcons)) {
|
| - return HandleIconsCommands(parsed_command_line());
|
| + return HandleIconsCommands();
|
| }
|
| if (parsed_command_line().HasSwitch(switches::kMakeDefaultBrowser)) {
|
| return ShellIntegration::SetAsDefaultBrowser() ?
|
| @@ -1684,7 +1684,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunInternal() {
|
| // Sets things up so that if we crash from this point on, a dialog will
|
| // popup asking the user to restart chrome. It is done this late to avoid
|
| // testing against a bunch of special cases that are taken care early on.
|
| - PrepareRestartOnCrashEnviroment(parsed_command_line());
|
| + PrepareRestartOnCrashEnviroment();
|
|
|
| // Start watching for hangs during startup. We disarm this hang detector when
|
| // ThreadWatcher takes over or when browser is shutdown.
|
|
|