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

Issue 10836005: gdata: Periodic refresh should be active for file lists loaded from cache. (Closed)

Created:
8 years, 4 months ago by kinaba
Modified:
8 years, 4 months ago
Reviewers:
satorux1, hshi1
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

gdata: Periodic refresh should be active for file lists loaded from cache. BUG=139561 TEST=manually tested that a file addition outside the Chromebook is reflected. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149343

Patch Set 1 #

Total comments: 1

Patch Set 2 : FROM_CACHE=>FROM_SERVER when delta feed is empty. #

Patch Set 3 : Add test. #

Patch Set 4 : Rebase + Typo fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -3 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 2 3 2 chunks +30 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/mock_gdata_documents_service.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
kinaba
hshi, can you take a look? I haven't fully understood the point of this if-statement ...
8 years, 4 months ago (2012-07-30 06:59:37 UTC) #1
hshi1
If I recall correctly, the "origin" may start with a CACHED state upon log-in when ...
8 years, 4 months ago (2012-07-30 13:46:56 UTC) #2
satorux1
http://codereview.chromium.org/10836005/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10836005/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode833 chrome/browser/chromeos/gdata/gdata_file_system.cc:833: if (initial_origin != REFRESHING) { looks dangerous. "origin" has ...
8 years, 4 months ago (2012-07-30 16:18:25 UTC) #3
tbarzic
If I understand kinaba's comment (#1), this is needed because origin is set to FROM_CACHE ...
8 years, 4 months ago (2012-07-30 18:42:13 UTC) #4
satorux1
the change looks good. can you write a test that fails without the fix, and ...
8 years, 4 months ago (2012-07-31 06:57:55 UTC) #5
kinaba
Thanks for quicker comment than mine :). Changed the patch along the suggestion in comment ...
8 years, 4 months ago (2012-07-31 07:23:40 UTC) #6
kinaba
Done (with a minor fix to MockGDataDocumentsService)! Satoru, could you give another look?
8 years, 4 months ago (2012-07-31 10:23:09 UTC) #7
satorux1
LGTM
8 years, 4 months ago (2012-07-31 20:53:21 UTC) #8
hshi1
lgtm
8 years, 4 months ago (2012-07-31 21:47:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/10836005/5003
8 years, 4 months ago (2012-07-31 23:53:24 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 01:08:07 UTC) #11
Change committed as 149343

Powered by Google App Engine
This is Rietveld 408576698