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

Unified Diff: chrome/browser/media/protected_media_identifier_permission_context.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: chrome/browser/media/protected_media_identifier_permission_context.cc
diff --git a/chrome/browser/media/protected_media_identifier_permission_context.cc b/chrome/browser/media/protected_media_identifier_permission_context.cc
index 90e30812d4c3538cdb5de3eee6d3ec7a8854c5a2..50c2dc51ec53a1f4269eff81c038c44fc6eb40bc 100644
--- a/chrome/browser/media/protected_media_identifier_permission_context.cc
+++ b/chrome/browser/media/protected_media_identifier_permission_context.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/media/protected_media_identifier_permission_context.h"
#include "base/command_line.h"
+#include "base/metrics/user_metrics.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/permissions/permission_util.h"
@@ -13,7 +14,6 @@
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
-#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
#if defined(OS_CHROMEOS)
#include <utility>
@@ -212,14 +212,14 @@ void ProtectedMediaIdentifierPermissionContext::
break;
case PlatformVerificationDialog::CONSENT_RESPONSE_ALLOW:
VLOG(1) << "Platform verification accepted by user.";
- content::RecordAction(
+ base::RecordAction(
base::UserMetricsAction("PlatformVerificationAccepted"));
content_setting = CONTENT_SETTING_ALLOW;
persist = true;
break;
case PlatformVerificationDialog::CONSENT_RESPONSE_DENY:
VLOG(1) << "Platform verification denied by user.";
- content::RecordAction(
+ base::RecordAction(
base::UserMetricsAction("PlatformVerificationRejected"));
content_setting = CONTENT_SETTING_BLOCK;
persist = true;
« no previous file with comments | « chrome/browser/media/android/remote/record_cast_action.cc ('k') | chrome/browser/metrics/chrome_stability_metrics_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698