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

Issue 2561023002: arc: ARC loading progress should not be shown when started from OOBE. (Closed)

Created:
4 years ago by khmel
Modified:
3 years, 10 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, alemate+watch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, achuith+watch_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: ARC loading progress should not be shown when started from OOBE. This fix regression (also compared with M56) when ARC loading progress is shown in case ARC is accepted from OOBE. In this case ARC is supposed to start silently, showing UI only if user interaction is required. For example press Sign-In button or in case of an error. This also handles the edge case for managed ARC user. In this case Opt UI is shown on PrimaryProfilePrepared stage and stays behind the OOBE UI. This CL closes this redundant UI in case user accepts ARC in OOBE. BUG=b/33431526 TEST=Manually on device, managed/unmanaged user. Accept Arc in OOBE. In case silent sign-in is enabled, no UI is shown and Play Store starts once Arc is booted. In case silent sign-in is disabled UI is shown when LSO is requested. Start Arc manually from settings. Start page is shown. Accept Arc and wait for LSO page is shown. Sign-out and sign-in again. Arc continues from showing Arc loading progress. Review-Url: https://codereview.chromium.org/2561023002 Cr-Commit-Position: refs/heads/master@{#447267} Committed: https://chromium.googlesource.com/chromium/src/+/8d4da8a74f81f9cd097a12d4a77e5c8839a0d958

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 4

Patch Set 3 : use TermsAccepted event to start Arc for managed users #

Total comments: 18

Patch Set 4 : rebased #

Patch Set 5 : oobe negotiator based #

Total comments: 5

Patch Set 6 : oobe negotiator only for managed user #

Patch Set 7 : cleanup #

Total comments: 48

Patch Set 8 : comments addressed #

Patch Set 9 : small fix #

Total comments: 24

Patch Set 10 : comments addresses #

Total comments: 10

Patch Set 11 : refactored #

Total comments: 50

Patch Set 12 : comments addressed #

Total comments: 20

Patch Set 13 : nits #

Total comments: 2

Patch Set 14 : rebased + comments updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+664 lines, -461 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +44 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -32 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +243 lines, -2 lines 0 comments Download
A + chrome/browser/chromeos/arc/optin/arc_terms_of_service_default_negotiator.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -20 lines 0 comments Download
A + chrome/browser/chromeos/arc/optin/arc_terms_of_service_default_negotiator.cc View 1 2 3 4 5 6 7 10 4 chunks +21 lines, -26 lines 0 comments Download
A + chrome/browser/chromeos/arc/optin/arc_terms_of_service_default_negotiator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/arc/optin/arc_terms_of_service_negotiator.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -39 lines 0 comments Download
M chrome/browser/chromeos/arc/optin/arc_terms_of_service_negotiator.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -76 lines 0 comments Download
M chrome/browser/chromeos/arc/optin/arc_terms_of_service_negotiator_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -193 lines 0 comments Download
A chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/test/arc_data_removed_waiter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/test/arc_data_removed_waiter.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/arc_terms_of_service_screen.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/screens/arc_terms_of_service_screen.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/screens/arc_terms_of_service_screen_actor.h View 1 2 3 4 1 chunk +7 lines, -23 lines 0 comments Download
A chrome/browser/chromeos/login/screens/arc_terms_of_service_screen_actor_observer.h View 1 2 3 4 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/users/fake_chrome_user_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/users/fake_chrome_user_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/arc_terms_of_service_screen_handler.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/arc_terms_of_service_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +25 lines, -12 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (20 generated)
khmel
Hi Xiyuan and Hidehiko, PTAL
4 years ago (2016-12-08 01:09:25 UTC) #2
xiyuan
https://codereview.chromium.org/2561023002/diff/20001/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2561023002/diff/20001/chrome/browser/chromeos/arc/arc_support_host.cc#newcode501 chrome/browser/chromeos/arc/arc_support_host.cc:501: // In case of managed Arc, UI is started ...
4 years ago (2016-12-08 20:27:28 UTC) #3
khmel
Thanks Xiyuan for comments! https://codereview.chromium.org/2561023002/diff/20001/chrome/browser/chromeos/arc/arc_support_host.cc File chrome/browser/chromeos/arc/arc_support_host.cc (right): https://codereview.chromium.org/2561023002/diff/20001/chrome/browser/chromeos/arc/arc_support_host.cc#newcode501 chrome/browser/chromeos/arc/arc_support_host.cc:501: // In case of managed ...
4 years ago (2016-12-08 23:33:45 UTC) #4
xiyuan
https://codereview.chromium.org/2561023002/diff/40001/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2561023002/diff/40001/chrome/browser/chromeos/arc/arc_session_manager.cc#newcode615 chrome/browser/chromeos/arc/arc_session_manager.cc:615: if (!IsFirstRunForUser()) This changes the existing behavior. For OOBE ...
4 years ago (2016-12-09 00:01:45 UTC) #5
hidehiko
As you may know, I put higher level question on the linked bug. Let's see ...
4 years ago (2016-12-09 06:59:57 UTC) #6
khmel
Thank you for comments. Based on our discussion I think it is more logical to ...
4 years ago (2016-12-14 01:27:59 UTC) #9
xiyuan
lgtm Nice. https://codereview.chromium.org/2561023002/diff/100001/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h File chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h (right): https://codereview.chromium.org/2561023002/diff/100001/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h#newcode40 chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h:40: PrefService* pref_service_; nit: PrefService* const
4 years ago (2016-12-14 17:07:32 UTC) #10
hidehiko
My biggest worry is a new condition combination added in the last PS, as commented ...
4 years ago (2016-12-15 03:04:08 UTC) #11
khmel
Hi, I addressed Hidehiko's concern about not having arc.enabled = false and ToS negotiator. Now ...
4 years ago (2016-12-16 01:43:35 UTC) #12
hidehiko
https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/arc/arc_session_manager.cc#newcode82 chrome/browser/chromeos/arc/arc_session_manager.cc:82: bool IsFirstRunForOobeEnabledUser() { Could you comment "FirstRun" is the ...
4 years ago (2016-12-16 05:31:51 UTC) #13
khmel
Thank you for comments. PTAL https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/arc/arc_session_manager.cc#newcode82 chrome/browser/chromeos/arc/arc_session_manager.cc:82: bool IsFirstRunForOobeEnabledUser() { On ...
4 years ago (2016-12-16 18:37:55 UTC) #14
hidehiko
https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/arc/arc_support_host.h File chrome/browser/chromeos/arc/arc_support_host.h (right): https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/arc/arc_support_host.h#newcode129 chrome/browser/chromeos/arc/arc_support_host.h:129: bool has_message_host() const { return message_host_; } On 2016/12/16 ...
4 years ago (2016-12-19 15:49:45 UTC) #15
khmel
Thank you for comments PTAL https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/arc/arc_support_host.h File chrome/browser/chromeos/arc/arc_support_host.h (right): https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/arc/arc_support_host.h#newcode129 chrome/browser/chromeos/arc/arc_support_host.h:129: bool has_message_host() const { ...
4 years ago (2016-12-19 17:48:11 UTC) #16
hidehiko
Sorry, I do not have enough time to have detailed review for this CL today. ...
4 years ago (2016-12-20 15:20:46 UTC) #17
khmel
https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/login/screens/arc_terms_of_service_screen.cc File chrome/browser/chromeos/login/screens/arc_terms_of_service_screen.cc (right): https://codereview.chromium.org/2561023002/diff/140001/chrome/browser/chromeos/login/screens/arc_terms_of_service_screen.cc#newcode59 chrome/browser/chromeos/login/screens/arc_terms_of_service_screen.cc:59: profile->GetPrefs()->SetBoolean(prefs::kArcTermsAccepted, accepted); On 2016/12/20 15:20:45, hidehiko wrote: > On ...
4 years ago (2016-12-20 16:27:58 UTC) #18
elijahtaylor1
It feels like there is some wheel spinning going on in this CL at this ...
4 years ago (2016-12-20 18:31:58 UTC) #20
khmel
Hi, I refactored code after our meeting as agreed. * Solution is based on PS ...
3 years, 10 months ago (2017-01-28 00:26:35 UTC) #21
hidehiko
Thank you for clean up. As we discussed, the direction looks much nicer to me! ...
3 years, 10 months ago (2017-01-30 10:12:36 UTC) #26
khmel
Hi Hidehiko Thanks for comments PTAL https://codereview.chromium.org/2561023002/diff/220001/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn (right): https://codereview.chromium.org/2561023002/diff/220001/chrome/browser/chromeos/BUILD.gn#newcode1465 chrome/browser/chromeos/BUILD.gn:1465: "arc/arc_session_manager_data_removed_waiter.cc", On 2017/01/30 ...
3 years, 10 months ago (2017-01-31 02:47:09 UTC) #27
hidehiko
Thank you for update. With your new comment, I believe it's much more understandable! Mostly ...
3 years, 10 months ago (2017-01-31 13:55:31 UTC) #36
khmel
Thank you for comments. PTAL Thanks https://codereview.chromium.org/2561023002/diff/220001/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2561023002/diff/220001/chrome/browser/chromeos/arc/arc_session_manager.cc#newcode678 chrome/browser/chromeos/arc/arc_session_manager.cc:678: // Need user's ...
3 years, 10 months ago (2017-01-31 15:25:22 UTC) #37
hidehiko
LGTM! https://codereview.chromium.org/2561023002/diff/240001/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h File chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h (right): https://codereview.chromium.org/2561023002/diff/240001/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h#newcode48 chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h:48: // chromeos::ArcTermsOfServiceScreenActor in last case. Solution is to ...
3 years, 10 months ago (2017-01-31 15:47:09 UTC) #38
khmel
Thank you for review! https://codereview.chromium.org/2561023002/diff/240001/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h File chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h (right): https://codereview.chromium.org/2561023002/diff/240001/chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h#newcode48 chrome/browser/chromeos/arc/optin/arc_terms_of_service_oobe_negotiator.h:48: // chromeos::ArcTermsOfServiceScreenActor in last case. ...
3 years, 10 months ago (2017-01-31 16:32:19 UTC) #39
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/2561023002/280001
3 years, 10 months ago (2017-01-31 16:34:16 UTC) #42
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 17:59:30 UTC) #45
Message was sent while issue was closed.
Committed patchset #14 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/8d4da8a74f81f9cd097a12d4a77e...

Powered by Google App Engine
This is Rietveld 408576698