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

Unified Diff: chrome/browser/chromeos/policy/wildcard_login_checker.cc

Issue 1767443002: Add enterprise enrollment support for fake users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Check instance before derefing it Created 4 years, 8 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
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,
« no previous file with comments | « chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc ('k') | chrome/browser/policy/test/policy_testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698