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

Issue 2450823002: Remove async load concept for ToS from native code. (Closed)

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

Description

Remove async load concept for ToS from native code. This CL removes the async-load concept for ToS from native ArcSupportHost / ArcAuthService, because it is unused. Now, it is encapsulated in the arc_support App. To integrate ToS related code into one place, for the maintainability, this CL introduces a class, TermsOfServicePage, which implements the ToS page of the arc_support App. After this CL, native can just say "Show ToS page" to ArcSupportHost, so that arc_support app handles async loading. This is the preparation to resolve the dependency between ArcAuthService and ArcSupportHost. BUG=657687 BUG=b/31079732 BUG=b/32424636 TEST=Ran on test device manually. Ran bots. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/bbb459c611c30ecad20b6b2912df9489c395871f Cr-Commit-Position: refs/heads/master@{#428375}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -174 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/arc_support/background.js View 1 2 3 12 chunks +235 lines, -166 lines 0 comments Download
M chrome/browser/resources/chromeos/arc_support/main.html View 1 chunk +3 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
hidehiko
PTAL: Luis, Xiyuan. FYI: Yury, but I'd appreciate if you reply to my inline comment. ...
4 years, 1 month ago (2016-10-25 15:52:14 UTC) #9
khmel
https://codereview.chromium.org/2450823002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2450823002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js#newcode317 chrome/browser/resources/chromeos/arc_support/background.js:317: setTimeout(function() { On 2016/10/25 15:52:14, hidehiko wrote: > khmel@, ...
4 years, 1 month ago (2016-10-25 15:59:12 UTC) #11
khmel
Please make sure that you handle all cases for loading ToS. There is onBeforeRequest discarded ...
4 years, 1 month ago (2016-10-25 16:16:12 UTC) #12
hidehiko
On 2016/10/25 16:16:12, khmel wrote: > Please make sure that you handle all cases for ...
4 years, 1 month ago (2016-10-26 11:50:15 UTC) #13
xiyuan
lgtm https://codereview.chromium.org/2450823002/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2450823002/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js#newcode226 chrome/browser/resources/chromeos/arc_support/background.js:226: * @param {boolean} isManaged Set true if ARC ...
4 years, 1 month ago (2016-10-26 20:27:30 UTC) #14
khmel
lgtm
4 years, 1 month ago (2016-10-27 00:49:36 UTC) #15
hidehiko
Thank you for review. As for loading progress bar on language switching, fixed the behavior ...
4 years, 1 month ago (2016-10-27 07:55:51 UTC) #17
Luis Héctor Chávez
sorry, i missed this review somehow :/ chrome/browser/chromeos/arc lgtm https://codereview.chromium.org/2450823002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2450823002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js#newcode317 chrome/browser/resources/chromeos/arc_support/background.js:317: ...
4 years, 1 month ago (2016-10-27 15:58:03 UTC) #22
hidehiko
Thank you for review. Submitting. On 2016/10/27 15:58:03, Luis Héctor Chávez wrote: > sorry, i ...
4 years, 1 month ago (2016-10-28 13:55:47 UTC) #23
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/2450823002/60001
4 years, 1 month ago (2016-10-28 13:56:12 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-28 15:15:24 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 15:18:16 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bbb459c611c30ecad20b6b2912df9489c395871f
Cr-Commit-Position: refs/heads/master@{#428375}

Powered by Google App Engine
This is Rietveld 408576698