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

Unified Diff: chrome/browser/ui/webui/options/search_engine_manager_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/options/search_engine_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/search_engine_manager_handler.cc b/chrome/browser/ui/webui/options/search_engine_manager_handler.cc
index 9979d8bc42d8058e81b7da1238110aa60ada7a8e..e93cdd37300bd92ab778c4ec218a71585191e28e 100644
--- a/chrome/browser/ui/webui/options/search_engine_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/search_engine_manager_handler.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/webui/options/search_engine_manager_handler.h"
#include "base/bind.h"
+#include "base/metrics/user_metrics.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -17,7 +18,6 @@
#include "chrome/grit/generated_resources.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
-#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_ui.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
@@ -226,8 +226,7 @@ void SearchEngineManagerHandler::SetDefaultSearchEngine(
list_controller_->MakeDefaultTemplateURL(index);
- content::RecordAction(
- base::UserMetricsAction("Options_SearchEngineSetDefault"));
+ base::RecordAction(base::UserMetricsAction("Options_SearchEngineSetDefault"));
}
void SearchEngineManagerHandler::RemoveSearchEngine(
@@ -242,8 +241,7 @@ void SearchEngineManagerHandler::RemoveSearchEngine(
if (list_controller_->CanRemove(list_controller_->GetTemplateURL(index))) {
list_controller_->RemoveTemplateURL(index);
- content::RecordAction(
- base::UserMetricsAction("Options_SearchEngineRemoved"));
+ base::RecordAction(base::UserMetricsAction("Options_SearchEngineRemoved"));
}
}

Powered by Google App Engine
This is Rietveld 408576698