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

Unified Diff: extensions/browser/extension_function.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 9 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: extensions/browser/extension_function.cc
diff --git a/extensions/browser/extension_function.cc b/extensions/browser/extension_function.cc
index f36a072f8ad09b90c838a3da175e0d40bd50ffd9..a6a1efafc5ef692583ef8c1bd643d223933d2caf 100644
--- a/extensions/browser/extension_function.cc
+++ b/extensions/browser/extension_function.cc
@@ -12,11 +12,11 @@
#include "base/memory/singleton.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/sparse_histogram.h"
+#include "base/metrics/user_metrics.h"
#include "base/synchronization/lock.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_frame_host.h"
-#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "extensions/browser/bad_message.h"
@@ -80,7 +80,7 @@ void LogUma(bool success,
}
void LogBadMessage(extensions::functions::HistogramValue histogram_value) {
- content::RecordAction(base::UserMetricsAction("BadMessageTerminate_EFD"));
+ base::RecordAction(base::UserMetricsAction("BadMessageTerminate_EFD"));
// Track the specific function's |histogram_value|, as this may indicate a
// bug in that API's implementation.
UMA_HISTOGRAM_ENUMERATION("Extensions.BadMessageFunctionName",
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.cc ('k') | extensions/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698