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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.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/ui/webui/local_discovery/local_discovery_ui_handler.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
index f55ba74fb7a6cf24f746bce810c454c4b2e92bc3..933c7e7762b879fd770a8f00755b30a5f6f787a5 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
@@ -10,6 +10,7 @@
#include "base/bind.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/metrics/user_metrics.h"
#include "base/stl_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -32,7 +33,6 @@
#include "components/cloud_devices/common/cloud_devices_urls.h"
#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
-#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_ui.h"
#include "printing/features/features.h"
#include "ui/base/l10n/l10n_util.h"
@@ -557,8 +557,7 @@ void LocalDiscoveryUIHandler::OnCloudPrintPrefsChanged() {
void LocalDiscoveryUIHandler::ShowCloudPrintSetupDialog(
const base::ListValue* args) {
- content::RecordAction(
- base::UserMetricsAction("Options_EnableCloudPrintProxy"));
+ base::RecordAction(base::UserMetricsAction("Options_EnableCloudPrintProxy"));
// Open the connector enable page in the current tab.
content::OpenURLParams params(cloud_devices::GetCloudPrintEnableURL(
GetCloudPrintProxyService()->proxy_id()),
@@ -570,8 +569,7 @@ void LocalDiscoveryUIHandler::ShowCloudPrintSetupDialog(
void LocalDiscoveryUIHandler::HandleDisableCloudPrintConnector(
const base::ListValue* args) {
- content::RecordAction(
- base::UserMetricsAction("Options_DisableCloudPrintProxy"));
+ base::RecordAction(base::UserMetricsAction("Options_DisableCloudPrintProxy"));
GetCloudPrintProxyService()->DisableForUser();
}
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.cc ('k') | chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698