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

Unified Diff: content/browser/renderer_host/file_utilities_message_filter.cc

Issue 10451076: Adding UMA for sync IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: histogram Created 8 years, 7 months 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/file_utilities_message_filter.cc
diff --git a/content/browser/renderer_host/file_utilities_message_filter.cc b/content/browser/renderer_host/file_utilities_message_filter.cc
index 287e18bf3ca00651c03a6017d11ad5f7d8c955e4..d76d2c032da4a97ce08c623290f0968a0fc47796 100644
--- a/content/browser/renderer_host/file_utilities_message_filter.cc
+++ b/content/browser/renderer_host/file_utilities_message_filter.cc
@@ -7,6 +7,7 @@
#include "base/file_util.h"
#include "content/browser/child_process_security_policy_impl.h"
#include "content/common/file_utilities_messages.h"
+#include "content/public/browser/user_metrics.h"
using content::BrowserThread;
@@ -32,6 +33,10 @@ bool FileUtilitiesMessageFilter::OnMessageReceived(const IPC::Message& message,
IPC_MESSAGE_HANDLER(FileUtilitiesMsg_OpenFile, OnOpenFile)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
+
+ if (handled && message.is_sync())
+ content::RecordAction(content::UserMetricsAction("FileSyncIPC_Handled"));
jam 2012/05/31 15:20:16 don't need to change this file now
+
return handled;
}

Powered by Google App Engine
This is Rietveld 408576698