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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc

Issue 8919017: Split UserMetrics into API vs. implementation. Move API to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Version for commit (merged again). Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
index 33eedbca12924635b2e1ed434dca00edcec46585..976c414307afaa0f9a2dd0904d5c5162a82a8826 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
@@ -30,8 +30,8 @@
#include "content/browser/tab_contents/navigation_controller.h"
#include "content/browser/tab_contents/navigation_entry.h"
#include "content/browser/tab_contents/tab_contents.h"
-#include "content/browser/user_metrics.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/user_metrics.h"
#include "grit/browser_resources.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
@@ -40,6 +40,7 @@
#include "ui/base/resource/resource_bundle.h"
using content::BrowserThread;
+using content::UserMetricsAction;
// For malware interstitial pages, we link the problematic URL to Google's
// diagnostic page.
@@ -626,7 +627,7 @@ void SafeBrowsingBlockingPage::RecordUserAction(BlockingPageEvent event) {
NOTREACHED() << "Unexpected event: " << event;
}
- UserMetrics::RecordComputedAction(action);
+ content::RecordComputedAction(action);
}
void SafeBrowsingBlockingPage::FinishMalwareDetails(int64 delay_ms) {
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698