Index: chrome/browser/chromeos/policy/wildcard_login_checker.cc |
diff --git a/chrome/browser/chromeos/policy/wildcard_login_checker.cc b/chrome/browser/chromeos/policy/wildcard_login_checker.cc |
index 1e53a69503ef5695c5d27086f9913c5a8449a556..435e1141b387ec8cabd2a76b988d9f53baee54e4 100644 |
--- a/chrome/browser/chromeos/policy/wildcard_login_checker.cc |
+++ b/chrome/browser/chromeos/policy/wildcard_login_checker.cc |
@@ -43,7 +43,7 @@ void WildcardLoginChecker::StartWithSigninContext( |
start_timestamp_ = base::Time::Now(); |
callback_ = callback; |
- token_fetcher_.reset(new PolicyOAuth2TokenFetcher()); |
+ token_fetcher_.reset(PolicyOAuth2TokenFetcher::CreateInstance()); |
token_fetcher_->StartWithSigninContext( |
signin_context.get(), g_browser_process->system_request_context(), |
base::Bind(&WildcardLoginChecker::OnPolicyTokenFetched, |
@@ -59,7 +59,7 @@ void WildcardLoginChecker::StartWithRefreshToken( |
start_timestamp_ = base::Time::Now(); |
callback_ = callback; |
- token_fetcher_.reset(new PolicyOAuth2TokenFetcher()); |
+ token_fetcher_.reset(PolicyOAuth2TokenFetcher::CreateInstance()); |
token_fetcher_->StartWithRefreshToken( |
refresh_token, g_browser_process->system_request_context(), |
base::Bind(&WildcardLoginChecker::OnPolicyTokenFetched, |