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

Unified Diff: components/signin/core/browser/signin_account_id_helper.cc

Issue 643183003: Adding instrumentation to locate the source of jankiness (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 | « components/signin/core/browser/account_tracker_service.cc ('k') | google_apis/gaia/account_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/signin_account_id_helper.cc
diff --git a/components/signin/core/browser/signin_account_id_helper.cc b/components/signin/core/browser/signin_account_id_helper.cc
index 57a69b21c8e3814dd1e43e8d8ae2a5fcd398e227..8570e11fcc31ec9f784f5726d2a6efef9c911e0b 100644
--- a/components/signin/core/browser/signin_account_id_helper.cc
+++ b/components/signin/core/browser/signin_account_id_helper.cc
@@ -5,6 +5,7 @@
#include "components/signin/core/browser/signin_account_id_helper.h"
#include "base/prefs/pref_service.h"
+#include "base/profiler/scoped_profile.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/signin/core/browser/signin_client.h"
#include "components/signin/core/common/signin_pref_names.h"
@@ -136,6 +137,11 @@ void SigninAccountIdHelper::GoogleSignedOut(const std::string& account_id,
void SigninAccountIdHelper::OnRefreshTokenAvailable(
const std::string& account_id) {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "422460 SigninAccountIdHelper::OnRefreshTokenAvailable"));
+
if (account_id == signin_manager_->GetAuthenticatedAccountId()) {
std::string current_gaia_id =
client_->GetPrefs()->GetString(prefs::kGoogleServicesUserAccountId);
« no previous file with comments | « components/signin/core/browser/account_tracker_service.cc ('k') | google_apis/gaia/account_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698