| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/browser_main.h" | 5 #include "chrome/browser/browser_main.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 #include "views/widget/widget.h" | 194 #include "views/widget/widget.h" |
| 195 #if defined(TOOLKIT_USES_GTK) | 195 #if defined(TOOLKIT_USES_GTK) |
| 196 #include "views/widget/native_widget_gtk.h" | 196 #include "views/widget/native_widget_gtk.h" |
| 197 #endif | 197 #endif |
| 198 #endif | 198 #endif |
| 199 | 199 |
| 200 #if defined(TOOLKIT_USES_GTK) | 200 #if defined(TOOLKIT_USES_GTK) |
| 201 #include "ui/gfx/gtk_util.h" | 201 #include "ui/gfx/gtk_util.h" |
| 202 #endif | 202 #endif |
| 203 | 203 |
| 204 #if defined(TOUCH_UI) && defined(HAVE_XINPUT2) | 204 #if defined(TOUCH_UI) |
| 205 #include "views/touchui/touch_factory.h" | 205 #include "views/touchui/touch_factory.h" |
| 206 #endif | 206 #endif |
| 207 | 207 |
| 208 namespace net { | 208 namespace net { |
| 209 class NetLog; | 209 class NetLog; |
| 210 } // namespace net | 210 } // namespace net |
| 211 | 211 |
| 212 // BrowserMainParts ------------------------------------------------------------ | 212 // BrowserMainParts ------------------------------------------------------------ |
| 213 | 213 |
| 214 BrowserMainParts::BrowserMainParts(const MainFunctionParams& parameters) | 214 BrowserMainParts::BrowserMainParts(const MainFunctionParams& parameters) |
| (...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 InstallJankometer(parsed_command_line); | 1776 InstallJankometer(parsed_command_line); |
| 1777 | 1777 |
| 1778 #if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD) | 1778 #if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD) |
| 1779 if (parsed_command_line.HasSwitch(switches::kDebugPrint)) { | 1779 if (parsed_command_line.HasSwitch(switches::kDebugPrint)) { |
| 1780 FilePath path = | 1780 FilePath path = |
| 1781 parsed_command_line.GetSwitchValuePath(switches::kDebugPrint); | 1781 parsed_command_line.GetSwitchValuePath(switches::kDebugPrint); |
| 1782 printing::PrintedDocument::set_debug_dump_path(path); | 1782 printing::PrintedDocument::set_debug_dump_path(path); |
| 1783 } | 1783 } |
| 1784 #endif | 1784 #endif |
| 1785 | 1785 |
| 1786 #if defined(TOUCH_UI) && defined(HAVE_XINPUT2) | 1786 #if defined(TOUCH_UI) |
| 1787 views::TouchFactory::GetInstance()->set_keep_mouse_cursor( | 1787 views::TouchFactory::GetInstance()->set_keep_mouse_cursor( |
| 1788 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKeepMouseCursor)); | 1788 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKeepMouseCursor)); |
| 1789 #endif | 1789 #endif |
| 1790 | 1790 |
| 1791 #if defined(TOOLKIT_VIEWS) | 1791 #if defined(TOOLKIT_VIEWS) |
| 1792 views::Widget::SetPureViews( | 1792 views::Widget::SetPureViews( |
| 1793 CommandLine::ForCurrentProcess()->HasSwitch(switches::kUsePureViews)); | 1793 CommandLine::ForCurrentProcess()->HasSwitch(switches::kUsePureViews)); |
| 1794 #endif | 1794 #endif |
| 1795 | 1795 |
| 1796 HandleTestParameters(parsed_command_line); | 1796 HandleTestParameters(parsed_command_line); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1981 #if defined(OS_CHROMEOS) | 1981 #if defined(OS_CHROMEOS) |
| 1982 // To be precise, logout (browser shutdown) is not yet done, but the | 1982 // To be precise, logout (browser shutdown) is not yet done, but the |
| 1983 // remaining work is negligible, hence we say LogoutDone here. | 1983 // remaining work is negligible, hence we say LogoutDone here. |
| 1984 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", | 1984 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", |
| 1985 false); | 1985 false); |
| 1986 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); | 1986 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); |
| 1987 #endif | 1987 #endif |
| 1988 TRACE_EVENT_END_ETW("BrowserMain", 0, 0); | 1988 TRACE_EVENT_END_ETW("BrowserMain", 0, 0); |
| 1989 return result_code; | 1989 return result_code; |
| 1990 } | 1990 } |
| OLD | NEW |