Chromium Code Reviews| Index: google_apis/gaia/oauth2_token_service.cc |
| diff --git a/google_apis/gaia/oauth2_token_service.cc b/google_apis/gaia/oauth2_token_service.cc |
| index dac940b58ae2e20c51f821599ce2d8216b5b44fd..64a8e7301c71e46d7e89784b882fe1cbe817c065 100644 |
| --- a/google_apis/gaia/oauth2_token_service.cc |
| +++ b/google_apis/gaia/oauth2_token_service.cc |
| @@ -214,6 +214,12 @@ OAuth2TokenService::Fetcher* OAuth2TokenService::Fetcher::CreateAndStart( |
| client_secret, |
| scopes, |
| waiting_request); |
| + |
| + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. |
| + tracked_objects::ScopedTracker tracking_profile( |
| + FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| + "422460 OAuth2TokenService::Fetcher::CreateAndStart")); |
| + |
| fetcher->Start(); |
| return fetcher; |
| } |
| @@ -411,6 +417,11 @@ scoped_ptr<OAuth2TokenService::Request> OAuth2TokenService::StartRequest( |
| const std::string& account_id, |
| const OAuth2TokenService::ScopeSet& scopes, |
| OAuth2TokenService::Consumer* consumer) { |
| + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. |
| + tracked_objects::ScopedTracker tracking_profile( |
| + FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| + "422460 OAuth2TokenService::StartRequest")); |
| + |
|
Roger Tawa OOO till Jul 10th
2014/11/04 16:28:08
I wonder if this trace is needed given that this f
vadimt
2014/11/04 16:47:53
Done.
|
| return StartRequestForClientWithContext( |
| account_id, |
| GetRequestContext(), |
| @@ -461,6 +472,11 @@ OAuth2TokenService::StartRequestForClientWithContext( |
| Consumer* consumer) { |
| DCHECK(CalledOnValidThread()); |
| + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. |
| + tracked_objects::ScopedTracker tracking_profile1( |
| + FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| + "422460 OAuth2TokenService::StartRequestForClientWithContext 1")); |
| + |
| scoped_ptr<RequestImpl> request(new RequestImpl(account_id, consumer)); |
| FOR_EACH_OBSERVER(DiagnosticsObserver, diagnostics_observer_list_, |
| OnAccessTokenRequested(account_id, |
| @@ -468,6 +484,11 @@ OAuth2TokenService::StartRequestForClientWithContext( |
| scopes)); |
| if (!RefreshTokenIsAvailable(account_id)) { |
| + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. |
| + tracked_objects::ScopedTracker tracking_profile2( |
| + FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| + "422460 OAuth2TokenService::StartRequestForClientWithContext 2")); |
| + |
| GoogleServiceAuthError error(GoogleServiceAuthError::USER_NOT_SIGNED_UP); |
| FOR_EACH_OBSERVER(DiagnosticsObserver, diagnostics_observer_list_, |
| @@ -488,6 +509,11 @@ OAuth2TokenService::StartRequestForClientWithContext( |
| account_id, |
| scopes); |
| if (HasCacheEntry(request_parameters)) { |
| + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. |
| + tracked_objects::ScopedTracker tracking_profile3( |
| + FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| + "422460 OAuth2TokenService::StartRequestForClientWithContext 3")); |
| + |
| StartCacheLookupRequest(request.get(), request_parameters, consumer); |
| } else { |
| FetchOAuth2Token(request.get(), |
| @@ -506,6 +532,11 @@ void OAuth2TokenService::FetchOAuth2Token(RequestImpl* request, |
| const std::string& client_id, |
| const std::string& client_secret, |
| const ScopeSet& scopes) { |
| + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. |
| + tracked_objects::ScopedTracker tracking_profile( |
| + FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| + "422460 OAuth2TokenService::FetchOAuth2Token")); |
| + |
| // If there is already a pending fetcher for |scopes| and |account_id|, |
| // simply register this |request| for those results rather than starting |
| // a new fetcher. |