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

Issue 11421125: Implement polling part of DriveFileSyncService (Closed)

Created:
8 years ago by tzik
Modified:
8 years ago
Reviewers:
kinuko, nhiroki
CC:
chromium-reviews, tzik+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

Implement polling part of DriveFileSyncService BUG=156041 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170904

Patch Set 1 #

Patch Set 2 : +timer #

Patch Set 3 : fix for optional changestamp field #

Total comments: 19

Patch Set 4 : fix #

Patch Set 5 : '' #

Patch Set 6 : update! #

Patch Set 7 : modify comment #

Total comments: 23

Patch Set 8 : '' #

Total comments: 6

Patch Set 9 : rebase #

Total comments: 3

Patch Set 10 : s/NotifyRemoteChangeAvailable/NotifyRemoteChangeQueueUpdated/ #

Total comments: 6

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -74 lines) Patch
M chrome/browser/sync_file_system/drive_file_sync_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +23 lines, -12 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 26 chunks +186 lines, -33 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 16 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/sync_file_system/mock_remote_file_sync_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/mock_remote_file_sync_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/remote_file_sync_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
tzik
Hi, Kinuko-san and Hiroki-san. Could you take a early look to the CL? I'll add ...
8 years ago (2012-11-29 09:25:59 UTC) #1
kinuko
https://codereview.chromium.org/11421125/diff/3006/chrome/browser/google_apis/gdata_wapi_parser.h File chrome/browser/google_apis/gdata_wapi_parser.h (right): https://codereview.chromium.org/11421125/diff/3006/chrome/browser/google_apis/gdata_wapi_parser.h#newcode389 chrome/browser/google_apis/gdata_wapi_parser.h:389: static bool OptionalChangestamp(const base::StringPiece& value, int64* result); nit: over ...
8 years ago (2012-11-29 11:40:46 UTC) #2
kinuko
Polling part looks good. https://codereview.chromium.org/11421125/diff/3006/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/11421125/diff/3006/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode215 chrome/browser/sync_file_system/drive_file_sync_service.cc:215: largest_synced_changestamp_(0), We're not using this? ...
8 years ago (2012-11-29 11:47:43 UTC) #3
nhiroki
Looks good to me. It's only a trivial comment. https://codereview.chromium.org/11421125/diff/3006/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/11421125/diff/3006/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode1294 chrome/browser/sync_file_system/drive_file_sync_service.cc:1294: ...
8 years ago (2012-11-30 06:23:53 UTC) #4
tzik
Thanks! Updated. https://codereview.chromium.org/11421125/diff/3006/chrome/browser/google_apis/gdata_wapi_parser.h File chrome/browser/google_apis/gdata_wapi_parser.h (right): https://codereview.chromium.org/11421125/diff/3006/chrome/browser/google_apis/gdata_wapi_parser.h#newcode389 chrome/browser/google_apis/gdata_wapi_parser.h:389: static bool OptionalChangestamp(const base::StringPiece& value, int64* result); ...
8 years ago (2012-12-03 10:00:08 UTC) #5
kinuko
https://codereview.chromium.org/11421125/diff/2004/chrome/browser/sync_file_system/drive_file_sync_client.cc File chrome/browser/sync_file_system/drive_file_sync_client.cc (right): https://codereview.chromium.org/11421125/diff/2004/chrome/browser/sync_file_system/drive_file_sync_client.cc#newcode90 chrome/browser/sync_file_system/drive_file_sync_client.cc:90: GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction)) { nit: Should this be given from outside? ...
8 years ago (2012-12-03 13:10:34 UTC) #6
tzik
Updated. PTAL. https://codereview.chromium.org/11421125/diff/2004/chrome/browser/sync_file_system/drive_file_sync_client.cc File chrome/browser/sync_file_system/drive_file_sync_client.cc (right): https://codereview.chromium.org/11421125/diff/2004/chrome/browser/sync_file_system/drive_file_sync_client.cc#newcode90 chrome/browser/sync_file_system/drive_file_sync_client.cc:90: GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction)) { On 2012/12/03 13:10:34, kinuko wrote: ...
8 years ago (2012-12-04 04:59:50 UTC) #7
kinuko
lgtm Please update the issue description and BUG=, TEST= lines (TEST=manual is ok). https://codereview.chromium.org/11421125/diff/2005/chrome/browser/sync_file_system/drive_file_sync_service.cc File ...
8 years ago (2012-12-04 05:18:30 UTC) #8
nhiroki
LGTM https://codereview.chromium.org/11421125/diff/1040/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/11421125/diff/1040/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode597 chrome/browser/sync_file_system/drive_file_sync_service.cc:597: // Notify observer of the right timing to ...
8 years ago (2012-12-04 05:55:31 UTC) #9
tzik
https://codereview.chromium.org/11421125/diff/2005/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/11421125/diff/2005/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode568 chrome/browser/sync_file_system/drive_file_sync_service.cc:568: if (state_ == REMOTE_SERVICE_TEMPORARY_UNAVAILABLE) { On 2012/12/04 05:18:30, kinuko ...
8 years ago (2012-12-04 06:32:32 UTC) #10
kinuko
ok, still lgtm https://codereview.chromium.org/11421125/diff/6006/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/11421125/diff/6006/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode105 chrome/browser/sync_file_system/drive_file_sync_service.cc:105: void set_callback(const base::Closure& callback) { nit: ...
8 years ago (2012-12-04 06:59:17 UTC) #11
nhiroki
Still LGTM too! https://codereview.chromium.org/11421125/diff/6006/chrome/browser/sync_file_system/drive_file_sync_client.h File chrome/browser/sync_file_system/drive_file_sync_client.h (right): https://codereview.chromium.org/11421125/diff/6006/chrome/browser/sync_file_system/drive_file_sync_client.h#newcode158 chrome/browser/sync_file_system/drive_file_sync_client.h:158: // Convers |resource_id| to corresponing resource ...
8 years ago (2012-12-04 07:06:01 UTC) #12
tzik
https://codereview.chromium.org/11421125/diff/6006/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/11421125/diff/6006/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode105 chrome/browser/sync_file_system/drive_file_sync_service.cc:105: void set_callback(const base::Closure& callback) { On 2012/12/04 06:59:17, kinuko ...
8 years ago (2012-12-04 07:06:09 UTC) #13
tzik
https://codereview.chromium.org/11421125/diff/6006/chrome/browser/sync_file_system/drive_file_sync_client.h File chrome/browser/sync_file_system/drive_file_sync_client.h (right): https://codereview.chromium.org/11421125/diff/6006/chrome/browser/sync_file_system/drive_file_sync_client.h#newcode158 chrome/browser/sync_file_system/drive_file_sync_client.h:158: // Convers |resource_id| to corresponing resource link. On 2012/12/04 ...
8 years ago (2012-12-04 07:07:46 UTC) #14
commit-bot: I haz the power
8 years ago (2012-12-04 07:08:03 UTC) #15

Powered by Google App Engine
This is Rietveld 408576698