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

Issue 2449393002: Fix losing selected language on ToS page reloading. (Closed)

Created:
4 years, 1 month ago by hidehiko
Modified:
4 years, 1 month ago
Reviewers:
xiyuan, khmel
CC:
chromium-reviews, alemate+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, Luis Héctor Chávez
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix losing selected language on ToS page reloading. The reloading implemented by setting url to the ToS page directly. However, it has some redirection and user may select another language. Setting the page again triggers to redirection to the default page. Also, it sometimes triggers another redirection which causes flickering of the page. Fix the problems by reload(). BUG=659633 TEST=Ran on device. Ran trybots. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/03d3d5a0d122ab8ab1289cbca2af84377c924415 Cr-Commit-Position: refs/heads/master@{#429796}

Patch Set 1 #

Total comments: 5

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M chrome/browser/resources/chromeos/arc_support/background.js View 1 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 27 (10 generated)
hidehiko
PTAL: Xiyuan. FYI: Luis, Yury. Note: my pending refactoring CL can be rebased on top ...
4 years, 1 month ago (2016-10-26 13:31:14 UTC) #5
hidehiko
https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js#newcode674 chrome/browser/resources/chromeos/arc_support/background.js:674: loadTerms(); Note: Typically, this is the reload case. However, ...
4 years, 1 month ago (2016-10-26 13:33:54 UTC) #6
xiyuan
lgtm
4 years, 1 month ago (2016-10-26 20:34:13 UTC) #9
khmel
https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js#newcode505 chrome/browser/resources/chromeos/arc_support/background.js:505: if (termsView.src) { This might be dangerous. Assume ToS ...
4 years, 1 month ago (2016-10-26 20:35:20 UTC) #11
hidehiko
Thank you for review. https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js#newcode505 chrome/browser/resources/chromeos/arc_support/background.js:505: if (termsView.src) { On 2016/10/26 ...
4 years, 1 month ago (2016-10-27 04:01:48 UTC) #12
khmel
https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js#newcode505 chrome/browser/resources/chromeos/arc_support/background.js:505: if (termsView.src) { On 2016/10/27 04:01:48, hidehiko wrote: > ...
4 years, 1 month ago (2016-10-27 14:40:57 UTC) #13
hidehiko
https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js#newcode505 chrome/browser/resources/chromeos/arc_support/background.js:505: if (termsView.src) { On 2016/10/27 14:40:57, khmel wrote: > ...
4 years, 1 month ago (2016-10-27 16:41:01 UTC) #14
khmel
On 2016/10/27 16:41:01, hidehiko wrote: > https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js > File chrome/browser/resources/chromeos/arc_support/background.js (right): > > https://codereview.chromium.org/2449393002/diff/1/chrome/browser/resources/chromeos/arc_support/background.js#newcode505 > ...
4 years, 1 month ago (2016-10-27 16:48:05 UTC) #15
xiyuan
On 2016/10/27 16:48:05, khmel wrote: > I have only concern (you may consider this as ...
4 years, 1 month ago (2016-10-27 16:52:00 UTC) #16
hidehiko
On 2016/10/27 16:52:00, xiyuan wrote: > On 2016/10/27 16:48:05, khmel wrote: > > I have ...
4 years, 1 month ago (2016-10-28 06:24:52 UTC) #17
xiyuan
On 2016/10/28 06:24:52, hidehiko wrote: > Portal page case cannot be rescued, unfortunately, IIUC, > ...
4 years, 1 month ago (2016-10-28 16:37:20 UTC) #18
hidehiko
On 2016/10/28 16:37:20, xiyuan wrote: > On 2016/10/28 06:24:52, hidehiko wrote: > > Portal page ...
4 years, 1 month ago (2016-11-01 17:04:24 UTC) #19
xiyuan
On 2016/11/01 17:04:24, hidehiko wrote: > In this case, AFAI tested, webview.src is still old ...
4 years, 1 month ago (2016-11-01 17:45:27 UTC) #20
hidehiko
Thank you for review. Rebased and submitting.
4 years, 1 month ago (2016-11-04 03:46:20 UTC) #21
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/2449393002/20001
4 years, 1 month ago (2016-11-04 03:47:20 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-04 05:36:21 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 05:38:10 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/03d3d5a0d122ab8ab1289cbca2af84377c924415
Cr-Commit-Position: refs/heads/master@{#429796}

Powered by Google App Engine
This is Rietveld 408576698