diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 16:43:16 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 16:43:16 +0000 |
commit | f691f0e726229cf1150d2f04310d0d41be36f98c (patch) | |
tree | 512110bad2f6e26d183299e9b7234537d22cc970 /chrome/browser/views | |
parent | 62b113d13973e00c55107f308e92463bae007bb2 (diff) | |
download | chromium_src-f691f0e726229cf1150d2f04310d0d41be36f98c.zip chromium_src-f691f0e726229cf1150d2f04310d0d41be36f98c.tar.gz chromium_src-f691f0e726229cf1150d2f04310d0d41be36f98c.tar.bz2 |
Second round of transition of Time to TimeTicks for histogramming
The first CL was getting too large, and was being held back by
some platform specific changes. I pulled out the problems into
this CL to make it easier ot focus on getting them all right.
BUG=14193
r=eroman
Review URL: http://codereview.chromium.org/2033005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/external_protocol_dialog.cc | 4 | ||||
-rw-r--r-- | chrome/browser/views/external_protocol_dialog.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/external_protocol_dialog.cc b/chrome/browser/views/external_protocol_dialog.cc index 32126ee..afaba70 100644 --- a/chrome/browser/views/external_protocol_dialog.cc +++ b/chrome/browser/views/external_protocol_dialog.cc @@ -93,7 +93,7 @@ bool ExternalProtocolDialog::Accept() { // users start accepting these dialogs too quickly, we should worry about // clickjacking. UMA_HISTOGRAM_LONG_TIMES("clickjacking.launch_url", - base::Time::Now() - creation_time_); + base::TimeTicks::Now() - creation_time_); if (message_box_view_->IsCheckBoxSelected()) { ExternalProtocolHandler::SetBlockState( @@ -117,7 +117,7 @@ ExternalProtocolDialog::ExternalProtocolDialog(TabContents* tab_contents, const std::wstring& command) : tab_contents_(tab_contents), url_(url), - creation_time_(base::Time::Now()) { + creation_time_(base::TimeTicks::Now()) { const int kMaxUrlWithoutSchemeSize = 256; const int kMaxCommandSize = 256; std::wstring elided_url_without_scheme; diff --git a/chrome/browser/views/external_protocol_dialog.h b/chrome/browser/views/external_protocol_dialog.h index 4a5e469..b32582f 100644 --- a/chrome/browser/views/external_protocol_dialog.h +++ b/chrome/browser/views/external_protocol_dialog.h @@ -50,7 +50,7 @@ class ExternalProtocolDialog : public views::DialogDelegate { GURL url_; // The time at which this dialog was created. - base::Time creation_time_; + base::TimeTicks creation_time_; DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog); }; |