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

Unified Diff: content/browser/renderer_host/render_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/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 238a1a27271cda7943b857aaa5a6cce40585911b..82f3f823829c798a9632ed55514ddcbf81ace573 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -28,13 +28,13 @@
#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/browser/renderer_host/render_widget_helper.h"
#include "content/browser/resource_context.h"
-#include "content/browser/user_metrics.h"
#include "content/common/child_process_host_impl.h"
#include "content/common/child_process_messages.h"
#include "content/common/desktop_notification_messages.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/user_metrics.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
#include "ipc/ipc_channel_handle.h"
@@ -69,6 +69,7 @@
using content::BrowserThread;
using content::ChildProcessHostImpl;
using content::PluginServiceFilter;
+using content::UserMetricsAction;
using net::CookieStore;
namespace {
@@ -812,7 +813,7 @@ void RenderMessageFilter::OnAsyncOpenFile(const IPC::Message& msg,
if (!ChildProcessSecurityPolicy::GetInstance()->HasPermissionsForFile(
render_process_id_, path, flags)) {
DLOG(ERROR) << "Bad flags in ViewMsgHost_AsyncOpenFile message: " << flags;
- UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_AOF"));
+ content::RecordAction(UserMetricsAction("BadMessageTerminate_AOF"));
BadMessageReceived();
return;
}
« no previous file with comments | « content/browser/renderer_host/database_message_filter.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698