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/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1786 InstallJankometer(parsed_command_line()); | 1786 InstallJankometer(parsed_command_line()); |
1787 | 1787 |
1788 #if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD) | 1788 #if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD) |
1789 if (parsed_command_line().HasSwitch(switches::kDebugPrint)) { | 1789 if (parsed_command_line().HasSwitch(switches::kDebugPrint)) { |
1790 FilePath path = | 1790 FilePath path = |
1791 parsed_command_line().GetSwitchValuePath(switches::kDebugPrint); | 1791 parsed_command_line().GetSwitchValuePath(switches::kDebugPrint); |
1792 printing::PrintedDocument::set_debug_dump_path(path); | 1792 printing::PrintedDocument::set_debug_dump_path(path); |
1793 } | 1793 } |
1794 #endif | 1794 #endif |
1795 | 1795 |
1796 #if defined(TOUCH_UI) | |
1797 ui::TouchFactory::GetInstance()->set_keep_mouse_cursor( | |
1798 CommandLine::ForCurrentProcess()->HasSwitch(switches::kKeepMouseCursor)); | |
1799 #endif | |
1800 | |
1801 HandleTestParameters(parsed_command_line()); | 1796 HandleTestParameters(parsed_command_line()); |
1802 RecordBreakpadStatusUMA(metrics); | 1797 RecordBreakpadStatusUMA(metrics); |
1803 about_flags::RecordUMAStatistics(local_state); | 1798 about_flags::RecordUMAStatistics(local_state); |
1804 LanguageUsageMetrics::RecordAcceptLanguages( | 1799 LanguageUsageMetrics::RecordAcceptLanguages( |
1805 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages)); | 1800 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages)); |
1806 LanguageUsageMetrics::RecordApplicationLanguage( | 1801 LanguageUsageMetrics::RecordApplicationLanguage( |
1807 g_browser_process->GetApplicationLocale()); | 1802 g_browser_process->GetApplicationLocale()); |
1808 | 1803 |
1809 #if defined(OS_WIN) | 1804 #if defined(OS_WIN) |
1810 fragmentation_checker::RecordFragmentationMetricForCurrentModule(); | 1805 fragmentation_checker::RecordFragmentationMetricForCurrentModule(); |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2096 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && | 2091 if (env->GetVar(chrome::kPreReadEnvironmentVariable, &pre_read) && |
2097 (pre_read == "0" || pre_read == "1")) { | 2092 (pre_read == "0" || pre_read == "1")) { |
2098 std::string uma_name(name); | 2093 std::string uma_name(name); |
2099 uma_name += "_PreRead"; | 2094 uma_name += "_PreRead"; |
2100 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; | 2095 uma_name += pre_read == "1" ? "Enabled" : "Disabled"; |
2101 AddPreReadHistogramTime(uma_name.c_str(), time); | 2096 AddPreReadHistogramTime(uma_name.c_str(), time); |
2102 } | 2097 } |
2103 #endif | 2098 #endif |
2104 #endif | 2099 #endif |
2105 } | 2100 } |
OLD | NEW |