diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 21:46:32 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 21:46:32 +0000 |
commit | 62b4e52857f1fc8c0e26be90bc5e770e65f12aec (patch) | |
tree | 9101c313ebb60fda88a18f2aac014007011385dd /chrome/browser/metrics | |
parent | 36717d9b4e6ac635fe762ae9974fd57538df2fa8 (diff) | |
download | chromium_src-62b4e52857f1fc8c0e26be90bc5e770e65f12aec.zip chromium_src-62b4e52857f1fc8c0e26be90bc5e770e65f12aec.tar.gz chromium_src-62b4e52857f1fc8c0e26be90bc5e770e65f12aec.tar.bz2 |
Nix CommandLine::GetSwitchCount.
BUG=73195
TEST=none
Review URL: http://codereview.chromium.org/7342024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics')
-rw-r--r-- | chrome/browser/metrics/metrics_service.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc index ed6b5ce..19d18084 100644 --- a/chrome/browser/metrics/metrics_service.cc +++ b/chrome/browser/metrics/metrics_service.cc @@ -782,10 +782,10 @@ void MetricsService::InitializeMetricsState() { UMA_HISTOGRAM_COUNTS_100("Chrome.CommandLineAppModeCount", 1); } - UMA_HISTOGRAM_COUNTS_100("Chrome.CommandLineFlagCount", - command_line->GetSwitchCount()); + size_t switch_count = command_line->GetSwitches().size(); + UMA_HISTOGRAM_COUNTS_100("Chrome.CommandLineFlagCount", switch_count); UMA_HISTOGRAM_COUNTS_100("Chrome.CommandLineUncommonFlagCount", - command_line->GetSwitchCount() - common_commands); + switch_count - common_commands); // Kick off the process of saving the state (so the uptime numbers keep // getting updated) every n minutes. |