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

Unified Diff: chrome/browser/chromeos/login/signin/auth_sync_observer.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/chromeos/login/signin/auth_sync_observer.cc
diff --git a/chrome/browser/chromeos/login/signin/auth_sync_observer.cc b/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
index f86d892f56b87fab97a92e3c8117d38a1694047a..95a5cd0100eafdd9739ba951812a6e7717323d7f 100644
--- a/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
+++ b/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
@@ -15,7 +15,6 @@
#include "components/prefs/pref_service.h"
#include "components/user_manager/user_manager.h"
#include "components/user_manager/user_type.h"
-#include "content/public/browser/user_metrics.h"
#include "google_apis/gaia/gaia_auth_util.h"
class Profile;
@@ -79,8 +78,8 @@ void AuthSyncObserver::OnStateChanged(syncer::SyncService* sync) {
profile_,
base::Bind(&AuthSyncObserver::OnSupervisedTokenLoaded,
base::Unretained(this)));
- content::RecordAction(
- base::UserMetricsAction("ManagedUsers_Chromeos_Sync_Invalidated"));
+ base::RecordAction(
+ base::UserMetricsAction("ManagedUsers_Chromeos_Sync_Invalidated"));
}
} else if (state == GoogleServiceAuthError::NONE) {
if (user->GetType() == user_manager::USER_TYPE_SUPERVISED &&
@@ -90,8 +89,8 @@ void AuthSyncObserver::OnStateChanged(syncer::SyncService* sync) {
"Got an incorrectly invalidated token case, restoring token status.";
user_manager::UserManager::Get()->SaveUserOAuthStatus(
user->GetAccountId(), user_manager::User::OAUTH2_TOKEN_STATUS_VALID);
- content::RecordAction(
- base::UserMetricsAction("ManagedUsers_Chromeos_Sync_Recovered"));
+ base::RecordAction(
+ base::UserMetricsAction("ManagedUsers_Chromeos_Sync_Recovered"));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698