diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-26 23:54:41 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-26 23:54:41 +0000 |
commit | 1d2d22b12a66fce2615da7b271af5666a66ce70f (patch) | |
tree | da4f8ec6dce86a1d2551eb78c9ca56402b89809c /chrome/browser/safe_browsing | |
parent | 7b0aeeaf4647dca4d00c954ec13e8f20f587358e (diff) | |
download | chromium_src-1d2d22b12a66fce2615da7b271af5666a66ce70f.zip chromium_src-1d2d22b12a66fce2615da7b271af5666a66ce70f.tar.gz chromium_src-1d2d22b12a66fce2615da7b271af5666a66ce70f.tar.bz2 |
Revert 14569
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc index 1bf0a97..fd07b9d6 100644 --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc @@ -6,7 +6,6 @@ #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" -#include "base/histogram.h" #include "base/string_util.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/dom_operation_notification_details.h" @@ -50,21 +49,6 @@ static const char* const kLearnMoreCommand = "learnMore"; static const char* const kProceedCommand = "proceed"; static const char* const kTakeMeBackCommand = "takeMeBack"; -namespace { - -enum SafeBrowsingBlockingPageEvent { - SHOW, - PROCEED, - DONT_PROCEED, -}; - -void RecordSafeBrowsingBlockingPageStats(SafeBrowsingBlockingPageEvent event) { - static LinearHistogram histogram("interstial.safe_browsing", 0, 2, 4); - histogram.SetFlags(kUmaTargetedHistogramFlag); - histogram.Add(event); -} - -} // namespace // static SafeBrowsingBlockingPageFactory* SafeBrowsingBlockingPage::factory_ = NULL; @@ -99,7 +83,6 @@ SafeBrowsingBlockingPage::SafeBrowsingBlockingPage( sb_service_(sb_service), is_main_frame_(IsMainPage(unsafe_resources)), unsafe_resources_(unsafe_resources) { - RecordSafeBrowsingBlockingPageStats(SHOW); if (!is_main_frame_) { navigation_entry_index_to_remove_ = tab()->controller().last_committed_entry_index(); @@ -379,8 +362,6 @@ void SafeBrowsingBlockingPage::CommandReceived(const std::string& cmd) { } void SafeBrowsingBlockingPage::Proceed() { - RecordSafeBrowsingBlockingPageStats(PROCEED); - NotifySafeBrowsingService(sb_service_, unsafe_resources_, true); // Check to see if some new notifications of unsafe resources have been @@ -406,8 +387,6 @@ void SafeBrowsingBlockingPage::Proceed() { } void SafeBrowsingBlockingPage::DontProceed() { - RecordSafeBrowsingBlockingPageStats(DONT_PROCEED); - NotifySafeBrowsingService(sb_service_, unsafe_resources_, false); // The user does not want to proceed, clear the queued unsafe resources |