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

Issue 2191173003: MD History: Get sign in state from backend when refreshing the page (Closed)

Created:
4 years, 4 months ago by lshang
Modified:
4 years, 4 months ago
Reviewers:
tsergeant, calamity
CC:
chromium-reviews, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD History: Get sign in state from backend when refreshing the page In synced tabs page, the sign in promo will still show up when user signs in via the sign in promo and refresh the page. The reason of this bug is that internal sign in state of the element got updated, but refreshing the page, which gets the sign in state default value from loadTimeData, will still get the outdated state. Fix of the bug is to get sign in state from HistoryLoginHandler every time the page is reloaded, this will get the updated current sign in state. BUG=625109 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/93473de1895935289af8159ac8e0def340659fcb Cr-Commit-Position: refs/heads/master@{#409120}

Patch Set 1 #

Total comments: 6

Patch Set 2 : simplify #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M chrome/browser/resources/md_history/synced_device_manager.js View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (16 generated)
lshang
PTAL thanks!
4 years, 4 months ago (2016-07-29 03:18:49 UTC) #10
calamity
https://codereview.chromium.org/2191173003/diff/20001/chrome/browser/resources/md_history/synced_device_manager.js File chrome/browser/resources/md_history/synced_device_manager.js (right): https://codereview.chromium.org/2191173003/diff/20001/chrome/browser/resources/md_history/synced_device_manager.js#newcode44 chrome/browser/resources/md_history/synced_device_manager.js:44: value: true, You might want to leave this in... ...
4 years, 4 months ago (2016-07-29 05:14:59 UTC) #11
lshang
https://codereview.chromium.org/2191173003/diff/20001/chrome/browser/resources/md_history/synced_device_manager.js File chrome/browser/resources/md_history/synced_device_manager.js (right): https://codereview.chromium.org/2191173003/diff/20001/chrome/browser/resources/md_history/synced_device_manager.js#newcode44 chrome/browser/resources/md_history/synced_device_manager.js:44: value: true, On 2016/07/29 05:14:59, calamity wrote: > You ...
4 years, 4 months ago (2016-07-29 06:11:58 UTC) #12
tsergeant
this version lgtm
4 years, 4 months ago (2016-07-31 23:48:32 UTC) #13
calamity
lgtm
4 years, 4 months ago (2016-08-02 01:39:31 UTC) #16
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/2191173003/40001
4 years, 4 months ago (2016-08-02 02:00:31 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 4 months ago (2016-08-02 02:03:58 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 02:05:36 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/93473de1895935289af8159ac8e0def340659fcb
Cr-Commit-Position: refs/heads/master@{#409120}

Powered by Google App Engine
This is Rietveld 408576698