diff options
author | kaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-23 04:12:17 +0000 |
---|---|---|
committer | kaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-23 04:12:17 +0000 |
commit | de415556289c07f6a28bec79405d413460b186d2 (patch) | |
tree | 6664e471f3383e96c9f768750ad25d75cab567dc /chrome/browser/sessions | |
parent | 042b62dec29c560ccf3e5bfdbf658c11adb56f0b (diff) | |
download | chromium_src-de415556289c07f6a28bec79405d413460b186d2.zip chromium_src-de415556289c07f6a28bec79405d413460b186d2.tar.gz chromium_src-de415556289c07f6a28bec79405d413460b186d2.tar.bz2 |
Only HistogramBase is used outside of base/metrics.
So client code of histogram will see a simpler interface. This also makes adding SparseHistogram to existing metrics framework possible.
This CL depends on https://codereview.chromium.org/11682003/
So please review that one first.
TBR=sky@chromium.org,erikwright@chromium.org
BUG=139612
Review URL: https://chromiumcodereview.appspot.com/11615008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions')
-rw-r--r-- | chrome/browser/sessions/session_restore.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc index cd91de2..a4d953f 100644 --- a/chrome/browser/sessions/session_restore.cc +++ b/chrome/browser/sessions/session_restore.cc @@ -358,7 +358,7 @@ void TabLoader::Observe(int type, std::string time_for_count = base::StringPrintf("SessionRestore.FirstTabPainted_%d", tab_count_); - base::Histogram* counter_for_count = + base::HistogramBase* counter_for_count = base::Histogram::FactoryTimeGet( time_for_count, base::TimeDelta::FromMilliseconds(10), @@ -463,7 +463,7 @@ void TabLoader::HandleTabClosedOrLoaded(NavigationController* tab) { // Record a time for the number of tabs, to help track down contention. std::string time_for_count = base::StringPrintf("SessionRestore.AllTabsLoaded_%d", tab_count_); - base::Histogram* counter_for_count = + base::HistogramBase* counter_for_count = base::Histogram::FactoryTimeGet( time_for_count, base::TimeDelta::FromMilliseconds(10), |