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

Unified Diff: chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc

Issue 834073002: ChromeOS: Implement periodic timezone refresh on geolocation data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. Created 5 years, 11 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/login/signin/oauth2_login_verifier.cc
diff --git a/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc b/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
index 35bfdf41c80e0f7dc607fb71a4f95e24ccbe1215..807e28399c3e2d97d0ff73cdd49669287de0db84 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
+++ b/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
@@ -69,9 +69,9 @@ void OAuth2LoginVerifier::VerifyUserCookies(Profile* profile) {
// Delay the verification if the network is not connected or on a captive
// portal.
DelayNetworkCall(
+ base::TimeDelta::FromMilliseconds(kRequestRestartDelay),
base::Bind(&OAuth2LoginVerifier::StartAuthCookiesVerification,
- AsWeakPtr()),
- base::TimeDelta::FromMilliseconds(kRequestRestartDelay));
+ AsWeakPtr()));
}
void OAuth2LoginVerifier::VerifyProfileTokens(Profile* profile) {
@@ -79,10 +79,9 @@ void OAuth2LoginVerifier::VerifyProfileTokens(Profile* profile) {
// Delay the verification if the network is not connected or on a captive
// portal.
- DelayNetworkCall(
- base::Bind(
- &OAuth2LoginVerifier::VerifyProfileTokensImpl, AsWeakPtr(), profile),
- base::TimeDelta::FromMilliseconds(kRequestRestartDelay));
+ DelayNetworkCall(base::TimeDelta::FromMilliseconds(kRequestRestartDelay),
+ base::Bind(&OAuth2LoginVerifier::VerifyProfileTokensImpl,
+ AsWeakPtr(), profile));
}
void OAuth2LoginVerifier::VerifyProfileTokensImpl(Profile* profile) {

Powered by Google App Engine
This is Rietveld 408576698