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

Unified Diff: content/browser/browser_message_filter.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
Index: content/browser/browser_message_filter.cc
diff --git a/content/browser/browser_message_filter.cc b/content/browser/browser_message_filter.cc
index 64ed8bdb5989c9fef338cbf47774a66001fd106d..dd2414caf5dd845f0ddd6921b551e0578040fff1 100644
--- a/content/browser/browser_message_filter.cc
+++ b/content/browser/browser_message_filter.cc
@@ -9,11 +9,12 @@
#include "base/logging.h"
#include "base/process.h"
#include "base/process_util.h"
-#include "content/browser/user_metrics.h"
+#include "content/public/browser/user_metrics.h"
#include "content/public/common/result_codes.h"
#include "ipc/ipc_sync_message.h"
using content::BrowserThread;
+using content::UserMetricsAction;
BrowserMessageFilter::BrowserMessageFilter()
: channel_(NULL), peer_handle_(base::kNullProcessHandle) {
@@ -89,7 +90,7 @@ bool BrowserMessageFilter::DispatchMessage(const IPC::Message& message) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO) || rv) <<
"Must handle messages that were dispatched to another thread!";
if (!message_was_ok) {
- UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_BMF"));
+ content::RecordAction(UserMetricsAction("BadMessageTerminate_BMF"));
BadMessageReceived();
}
« no previous file with comments | « content/browser/appcache/appcache_dispatcher_host.cc ('k') | content/browser/file_system/file_system_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698