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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 8371022: touchui: Update a couple of command-line flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698