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

Unified Diff: google_apis/gaia/account_tracker.cc

Issue 686963002: Switching profiler instrumentations from ScopedProfile to ScopedTracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « extensions/browser/updater/extension_downloader.cc ('k') | google_apis/gaia/gaia_auth_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/account_tracker.cc
diff --git a/google_apis/gaia/account_tracker.cc b/google_apis/gaia/account_tracker.cc
index b134fc09eea6290eb0e730a2613cbcb15267dd6f..1c29ee6e6445c5f2bb96b9e63e763b6b27d2ba19 100644
--- a/google_apis/gaia/account_tracker.cc
+++ b/google_apis/gaia/account_tracker.cc
@@ -6,7 +6,7 @@
#include "base/debug/trace_event.h"
#include "base/logging.h"
-#include "base/profiler/scoped_profile.h"
+#include "base/profiler/scoped_tracker.h"
#include "base/stl_util.h"
#include "net/url_request/url_request_context_getter.h"
@@ -85,8 +85,8 @@ AccountIds AccountTracker::FindAccountIdsByGaiaId(const std::string& gaia_id) {
}
void AccountTracker::OnRefreshTokenAvailable(const std::string& account_id) {
- // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed.
- tracked_objects::ScopedProfile tracking_profile(
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"422460 AccountTracker::OnRefreshTokenAvailable"));
@@ -164,8 +164,8 @@ void AccountTracker::NotifyAccountRemoved(const AccountState& account) {
}
void AccountTracker::NotifySignInChanged(const AccountState& account) {
- // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed.
- tracked_objects::ScopedProfile tracking_profile(
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"422460 AccountTracker::NotifySignInChanged"));
@@ -177,7 +177,7 @@ void AccountTracker::NotifySignInChanged(const AccountState& account) {
void AccountTracker::UpdateSignInState(const std::string account_key,
bool is_signed_in) {
- tracked_objects::ScopedProfile tracking_profile(
+ tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"422460 AccountTracker::UpdateSignInState"));
@@ -195,8 +195,8 @@ void AccountTracker::UpdateSignInState(const std::string account_key,
}
void AccountTracker::StartTrackingAccount(const std::string account_key) {
- // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed.
- tracked_objects::ScopedProfile tracking_profile(
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"422460 AccountTracker::StartTrackingAccount"));
@@ -231,8 +231,8 @@ void AccountTracker::StopTrackingAllAccounts() {
}
void AccountTracker::StartFetchingUserInfo(const std::string account_key) {
- // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed.
- tracked_objects::ScopedProfile tracking_profile(
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"422460 AccountTracker::StartFetchingUserInfo"));
« no previous file with comments | « extensions/browser/updater/extension_downloader.cc ('k') | google_apis/gaia/gaia_auth_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698