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

Issue 2561433002: Make FirstRunActivity extend AsyncInitializationActivity. (Closed)

Created:
4 years ago by Alexei Svitkine (slow)
Modified:
3 years, 11 months ago
Reviewers:
Ted C, Yusuf
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make FirstRunActivity extend AsyncInitializationActivity. This is a follow-up to https://codereview.chromium.org/2519853004/ which made it possible to show the first FRE screen before native is initialized, to support fetching the variations seed at that time. This CL further builds on that to make FirstRunActivity actually be an AsyncInitializationActivity, so that it never needs to do the synchronous native init path - instead waiting for async init to be done before allowing the user to proceed. When clicking Accept on the first FRE page (ToS and UMA), this will now show a spinner while waiting for native init and the variations seed fetch (whose timeout has been lowered to 3s). BUG=632199 Review-Url: https://codereview.chromium.org/2561433002 Cr-Commit-Position: refs/heads/master@{#442919} Committed: https://chromium.googlesource.com/chromium/src/+/36860c01c1913acd255129a9024e22928f934d0e

Patch Set 1 #

Patch Set 2 : Show a spinner when native isn't initialized yet instead of disabling the button. #

Total comments: 7

Patch Set 3 : Add skip logic and remove some calls to createPostNativePageSequence(). #

Patch Set 4 : Rebase #

Patch Set 5 : Use setUserVisibleHint() and hide UI when showing spinner. #

Patch Set 6 : Rebase #

Patch Set 7 : Couple small cleanups. #

Patch Set 8 : Update UX. #

Messages

Total messages: 53 (39 generated)
Alexei Svitkine (slow)
Ted & Yusuf, PTAL. Some points of discussion: - I'm not sold on disabling the ...
4 years ago (2016-12-12 17:38:24 UTC) #11
Alexei Svitkine (slow)
On 2016/12/12 17:38:24, Alexei Svitkine (OO from 15th) wrote: > Ted & Yusuf, PTAL. > ...
4 years ago (2016-12-12 23:43:29 UTC) #16
Alexei Svitkine (slow)
I uploaded a new patchset where I switched the behavior to something in my opinion ...
4 years ago (2016-12-13 21:29:08 UTC) #19
Ted C
Overall, this seems reasonable. I do wish there was a cleaner way of getting the ...
4 years ago (2016-12-13 21:50:15 UTC) #20
Alexei Svitkine (slow)
Thanks Ted, PTAL. I also added the timeout changes to variations seed fetching in this ...
4 years ago (2016-12-15 01:13:24 UTC) #30
Alexei Svitkine (slow)
https://codereview.chromium.org/2561433002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/firstrun/ToSAndUMAFirstRunFragment.java File chrome/android/java/src/org/chromium/chrome/browser/firstrun/ToSAndUMAFirstRunFragment.java (right): https://codereview.chromium.org/2561433002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/firstrun/ToSAndUMAFirstRunFragment.java#newcode61 chrome/android/java/src/org/chromium/chrome/browser/firstrun/ToSAndUMAFirstRunFragment.java:61: view.findViewById(R.id.progress_spinner).setVisibility(View.VISIBLE); On 2016/12/15 01:13:24, Alexei Svitkine (OO from 15th) ...
4 years ago (2016-12-15 16:05:56 UTC) #33
Alexei Svitkine (slow)
Ok one more iteration on this - I think this is now finally in a ...
4 years ago (2016-12-15 16:51:32 UTC) #36
Alexei Svitkine (slow)
Okay, still welcome comments on this - but given I've not received them yet and ...
4 years ago (2016-12-15 21:31:24 UTC) #39
Yusuf
On 2016/12/15 21:31:24, Alexei Svitkine (OO from 15th) wrote: > Okay, still welcome comments on ...
4 years ago (2016-12-15 21:43:16 UTC) #40
Ted C
On 2016/12/15 21:43:16, Yusuf wrote: > On 2016/12/15 21:31:24, Alexei Svitkine (OO from 15th) wrote: ...
4 years ago (2016-12-15 21:46:25 UTC) #41
Alexei Svitkine (slow)
Updated UX per the offline thread: - Spinner is positioned at some location as button ...
3 years, 11 months ago (2017-01-11 15:48:29 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2561433002/260001
3 years, 11 months ago (2017-01-11 15:48:55 UTC) #49
commit-bot: I haz the power
Committed patchset #8 (id:260001) as https://chromium.googlesource.com/chromium/src/+/36860c01c1913acd255129a9024e22928f934d0e
3 years, 11 months ago (2017-01-11 16:22:48 UTC) #52
Alexei Svitkine (slow)
3 years, 11 months ago (2017-01-11 21:20:52 UTC) #53
Message was sent while issue was closed.
There's a follow-up fix for this in the cq:
https://codereview.chromium.org/2628943002/

Powered by Google App Engine
This is Rietveld 408576698