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

Issue 10736020: Fixed host list cache and "no hosts" icon flash (Closed)

Created:
8 years, 5 months ago by Jamie
Modified:
8 years, 5 months ago
Reviewers:
Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

If an account with hosts registered is accessed on a machine on which those hosts are cached, then the host list should not display the "no hosts" icon while the host list is being refreshed. This CL fixes a bug related to the asynchronous nature of getting the local host id for the purpose of filtering it from the host list, which caused the cached host list never to be displayed. Note that if the account has hosts registered, but is accessed from a computer with no cache, then the "no hosts" icon will still flash briefly (although it will generally be hidden behind the infographic). BUG=135288 TEST=Manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=146200

Patch Set 1 #

Patch Set 2 : Fixed host list cache and yellow informational icon flash. #

Patch Set 3 : Improved comment. #

Patch Set 4 : A simpler solution. #

Total comments: 6

Patch Set 5 : Review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M remoting/webapp/host_list.js View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M remoting/webapp/remoting.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jamie
ptal
8 years, 5 months ago (2012-07-11 00:58:33 UTC) #1
Wez
LGTM, but please clarify in the CL description why it's unnecessary.
8 years, 5 months ago (2012-07-11 15:56:31 UTC) #2
Jamie
On further inspection, it was intended to display the cached host list, but didn't work ...
8 years, 5 months ago (2012-07-11 17:04:46 UTC) #3
Jamie
As discussed, here's a solution that fixes the problem by not clearing the host list ...
8 years, 5 months ago (2012-07-11 19:58:29 UTC) #4
Wez
http://codereview.chromium.org/10736020/diff/6002/remoting/webapp/host_list.js File remoting/webapp/host_list.js (left): http://codereview.chromium.org/10736020/diff/6002/remoting/webapp/host_list.js#oldcode123 remoting/webapp/host_list.js:123: this.lastError_ = ''; Are you relying on the fact ...
8 years, 5 months ago (2012-07-11 20:48:10 UTC) #5
Jamie
http://codereview.chromium.org/10736020/diff/6002/remoting/webapp/host_list.js File remoting/webapp/host_list.js (left): http://codereview.chromium.org/10736020/diff/6002/remoting/webapp/host_list.js#oldcode123 remoting/webapp/host_list.js:123: this.lastError_ = ''; On 2012/07/11 20:48:10, Wez wrote: > ...
8 years, 5 months ago (2012-07-11 20:53:10 UTC) #6
Wez
8 years, 5 months ago (2012-07-11 20:53:49 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698