OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_browser_main.h" |
6 | 6 |
7 #if defined(TOOLKIT_GTK) | 7 #if defined(TOOLKIT_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 #include "chrome/browser/ui/network_profile_bubble.h" | 172 #include "chrome/browser/ui/network_profile_bubble.h" |
173 #include "chrome/installer/util/helper.h" | 173 #include "chrome/installer/util/helper.h" |
174 #include "chrome/installer/util/install_util.h" | 174 #include "chrome/installer/util/install_util.h" |
175 #include "chrome/installer/util/shell_util.h" | 175 #include "chrome/installer/util/shell_util.h" |
176 #include "net/base/net_util.h" | 176 #include "net/base/net_util.h" |
177 #include "printing/printed_document.h" | 177 #include "printing/printed_document.h" |
178 #include "ui/base/l10n/l10n_util_win.h" | 178 #include "ui/base/l10n/l10n_util_win.h" |
179 #include "ui/base/win/dpi.h" | 179 #include "ui/base/win/dpi.h" |
180 #endif // defined(OS_WIN) | 180 #endif // defined(OS_WIN) |
181 | 181 |
182 #if defined(OS_WIN) && defined(USE_AURA) | |
183 #include "chrome/browser/browser_process_platform_part_aurawin.h" | |
184 #else | |
185 #include "chrome/browser/browser_process_platform_part.h" | |
186 #endif | |
187 | |
188 #if defined(OS_MACOSX) | 182 #if defined(OS_MACOSX) |
189 #include <Security/Security.h> | 183 #include <Security/Security.h> |
190 | 184 |
191 #include "base/mac/scoped_nsautorelease_pool.h" | 185 #include "base/mac/scoped_nsautorelease_pool.h" |
192 #include "chrome/browser/mac/keystone_glue.h" | 186 #include "chrome/browser/mac/keystone_glue.h" |
193 #endif | 187 #endif |
194 | 188 |
195 #if defined(ENABLE_CONFIGURATION_POLICY) | 189 #if defined(ENABLE_CONFIGURATION_POLICY) |
196 #include "policy/policy_constants.h" | 190 #include "policy/policy_constants.h" |
197 #endif | 191 #endif |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 if (command_line.HasSwitch(switches::kOriginalProcessStartTime)) { | 428 if (command_line.HasSwitch(switches::kOriginalProcessStartTime)) { |
435 std::string start_time_string = | 429 std::string start_time_string = |
436 command_line.GetSwitchValueASCII(switches::kOriginalProcessStartTime); | 430 command_line.GetSwitchValueASCII(switches::kOriginalProcessStartTime); |
437 int64 remote_start_time; | 431 int64 remote_start_time; |
438 base::StringToInt64(start_time_string, &remote_start_time); | 432 base::StringToInt64(start_time_string, &remote_start_time); |
439 UMA_HISTOGRAM_LONG_TIMES( | 433 UMA_HISTOGRAM_LONG_TIMES( |
440 "Startup.WarmStartTimeFromRemoteProcessStart", | 434 "Startup.WarmStartTimeFromRemoteProcessStart", |
441 base::Time::Now() - base::Time::FromInternalValue(remote_start_time)); | 435 base::Time::Now() - base::Time::FromInternalValue(remote_start_time)); |
442 } | 436 } |
443 | 437 |
444 g_browser_process->platform_part()->PlatformSpecificCommandLineProcessing( | 438 g_browser_process->PlatformSpecificCommandLineProcessing(command_line); |
445 command_line); | |
446 | 439 |
447 // TODO(erikwright): Consider removing this - AFAIK it is no longer used. | 440 // TODO(erikwright): Consider removing this - AFAIK it is no longer used. |
448 // Handle the --uninstall-extension startup action. This needs to done here in | 441 // Handle the --uninstall-extension startup action. This needs to done here in |
449 // the process that is running with the target profile, otherwise the | 442 // the process that is running with the target profile, otherwise the |
450 // uninstall will fail to unload and remove all components. | 443 // uninstall will fail to unload and remove all components. |
451 if (command_line.HasSwitch(switches::kUninstallExtension)) { | 444 if (command_line.HasSwitch(switches::kUninstallExtension)) { |
452 // The uninstall extension switch can't be combined with the profile | 445 // The uninstall extension switch can't be combined with the profile |
453 // directory switch. | 446 // directory switch. |
454 DCHECK(!command_line.HasSwitch(switches::kProfileDirectory)); | 447 DCHECK(!command_line.HasSwitch(switches::kProfileDirectory)); |
455 | 448 |
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1813 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1806 if (base::win::GetVersion() <= base::win::VERSION_XP) |
1814 uma_name += "_XP"; | 1807 uma_name += "_XP"; |
1815 | 1808 |
1816 uma_name += "_PreRead_"; | 1809 uma_name += "_PreRead_"; |
1817 uma_name += pre_read_percentage; | 1810 uma_name += pre_read_percentage; |
1818 AddPreReadHistogramTime(uma_name.c_str(), time); | 1811 AddPreReadHistogramTime(uma_name.c_str(), time); |
1819 } | 1812 } |
1820 #endif | 1813 #endif |
1821 #endif | 1814 #endif |
1822 } | 1815 } |
OLD | NEW |