| Index: chrome/browser/extensions/api/identity/identity_api.cc
|
| diff --git a/chrome/browser/extensions/api/identity/identity_api.cc b/chrome/browser/extensions/api/identity/identity_api.cc
|
| index 58c41aa8b8b6c6212135d7a7b1afacf4bfb06322..a06ed5b8c95a3597ce1f5dc8378822d95402b7da 100644
|
| --- a/chrome/browser/extensions/api/identity/identity_api.cc
|
| +++ b/chrome/browser/extensions/api/identity/identity_api.cc
|
| @@ -288,11 +288,6 @@ IdentityGetAuthTokenFunction::IdentityGetAuthTokenFunction()
|
| : OAuth2TokenService::Consumer("extensions_identity_api"),
|
| should_prompt_for_scopes_(false),
|
| should_prompt_for_signin_(false) {
|
| - TRACE_EVENT_ASYNC_BEGIN1("identity",
|
| - "IdentityGetAuthTokenFunction",
|
| - this,
|
| - "extension",
|
| - extension()->id());
|
| }
|
|
|
| IdentityGetAuthTokenFunction::~IdentityGetAuthTokenFunction() {
|
| @@ -300,6 +295,12 @@ IdentityGetAuthTokenFunction::~IdentityGetAuthTokenFunction() {
|
| }
|
|
|
| bool IdentityGetAuthTokenFunction::RunAsync() {
|
| + TRACE_EVENT_ASYNC_BEGIN1("identity",
|
| + "IdentityGetAuthTokenFunction",
|
| + this,
|
| + "extension",
|
| + extension()->id());
|
| +
|
| if (GetProfile()->IsOffTheRecord()) {
|
| error_ = identity_constants::kOffTheRecord;
|
| return false;
|
|
|