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

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter.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
« no previous file with comments | « chrome/browser/ui/page_info/page_info.cc ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/passwords/password_manager_presenter.cc
diff --git a/chrome/browser/ui/passwords/password_manager_presenter.cc b/chrome/browser/ui/passwords/password_manager_presenter.cc
index f2c2893a39e4036b0b46c0d567c9ee073d648b5a..da0fe5733dcdf3567b72b67b0ac573cdeb6868e6 100644
--- a/chrome/browser/ui/passwords/password_manager_presenter.cc
+++ b/chrome/browser/ui/passwords/password_manager_presenter.cc
@@ -10,6 +10,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_split.h"
@@ -36,7 +37,6 @@
#include "components/password_manager/sync/browser/password_sync_util.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
@@ -190,7 +190,7 @@ void PasswordManagerPresenter::RemoveSavedPassword(size_t index) {
RemoveDuplicates(*password_list_[index], &password_duplicates_, store,
PasswordEntryType::SAVED);
store->RemoveLogin(*password_list_[index]);
- content::RecordAction(
+ base::RecordAction(
base::UserMetricsAction("PasswordManager_RemoveSavedPassword"));
}
@@ -209,7 +209,7 @@ void PasswordManagerPresenter::RemovePasswordException(size_t index) {
&password_exception_duplicates_, store,
PasswordEntryType::BLACKLISTED);
store->RemoveLogin(*password_exception_list_[index]);
- content::RecordAction(
+ base::RecordAction(
base::UserMetricsAction("PasswordManager_RemovePasswordException"));
}
@@ -236,7 +236,7 @@ void PasswordManagerPresenter::RequestShowPassword(size_t index) {
if (password_manager::sync_util::IsSyncAccountCredential(
*password_list_[index], sync_service,
SigninManagerFactory::GetForProfile(password_view_->GetProfile()))) {
- content::RecordAction(
+ base::RecordAction(
base::UserMetricsAction("PasswordManager_SyncCredentialShown"));
}
« no previous file with comments | « chrome/browser/ui/page_info/page_info.cc ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698