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

Issue 2385273003: [Signin] Add account check timeout alert dialogue (Closed)

Created:
4 years, 2 months ago by gogerald1
Modified:
3 years, 9 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add account check timeout alert dialogue BUG=650121

Patch Set 1 #

Patch Set 2 : rename #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/signin/ConfirmSyncDataStateMachine.java View 1 5 chunks +64 lines, -0 lines 2 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (11 generated)
gogerald1
Hi, PTAL,
4 years, 2 months ago (2016-10-03 22:55:03 UTC) #8
Bernhard Bauer
4 years, 2 months ago (2016-10-04 10:11:02 UTC) #13
https://codereview.chromium.org/2385273003/diff/40001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/signin/ConfirmSyncDataStateMachine.java
(right):

https://codereview.chromium.org/2385273003/diff/40001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/signin/ConfirmSyncDataStateMachine.java:211:
if (mNewAccountManaged.isFulfilled()) {
You're polling the state of the Promise? Don't poll the state of the Promise. :)
It should be sufficient to schedule a delayed task (with
ThreadUtils.postOnUiThreadDelayed) that shows the dialog if the promise is not
fulfilled at that point. (Maybe store the promise in a final local variable
before you reference it in the callback, so you know it's always going to be the
same one).

https://codereview.chromium.org/2385273003/diff/40001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/signin/ConfirmSyncDataStateMachine.java:241:
timingAccountCheck();
Oh, so "retry" doesn't actually abort the sign-in attempt and restart it, but
just extends the waiting time? Hmm, if this is in fact due to, say, a stuck
network connection, an actual retry might be more useful.

Powered by Google App Engine
This is Rietveld 408576698