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

Unified Diff: chrome/browser/ui/search_engines/keyword_editor_controller.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/search_engines/keyword_editor_controller.cc
diff --git a/chrome/browser/ui/search_engines/keyword_editor_controller.cc b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
index 1c2fd5ead84e5600a6bdf13252c4777402a0380b..536c5aa291f0db9713d8a15a11e197b6f1932a8e 100644
--- a/chrome/browser/ui/search_engines/keyword_editor_controller.cc
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/ui/search_engines/keyword_editor_controller.h"
+#include "base/metrics/user_metrics.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/search_engines/template_url_table_model.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
-#include "content/public/browser/user_metrics.h"
using base::UserMetricsAction;
@@ -29,7 +29,7 @@ int KeywordEditorController::AddTemplateURL(const base::string16& title,
const std::string& url) {
DCHECK(!url.empty());
- content::RecordAction(UserMetricsAction("KeywordEditor_AddKeyword"));
+ base::RecordAction(UserMetricsAction("KeywordEditor_AddKeyword"));
const int new_index = table_model_->last_other_engine_index();
table_model_->Add(new_index, title, keyword, url);
@@ -56,7 +56,7 @@ void KeywordEditorController::ModifyTemplateURL(TemplateURL* template_url,
table_model_->ModifyTemplateURL(index, title, keyword, url);
- content::RecordAction(UserMetricsAction("KeywordEditor_ModifiedKeyword"));
+ base::RecordAction(UserMetricsAction("KeywordEditor_ModifiedKeyword"));
}
bool KeywordEditorController::CanEdit(const TemplateURL* url) const {
@@ -76,7 +76,7 @@ bool KeywordEditorController::CanRemove(const TemplateURL* url) const {
void KeywordEditorController::RemoveTemplateURL(int index) {
table_model_->Remove(index);
- content::RecordAction(UserMetricsAction("KeywordEditor_RemoveKeyword"));
+ base::RecordAction(UserMetricsAction("KeywordEditor_RemoveKeyword"));
}
TemplateURL* KeywordEditorController::GetDefaultSearchProvider() {
« no previous file with comments | « chrome/browser/ui/search_engines/edit_search_engine_controller.cc ('k') | chrome/browser/ui/settings_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698