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

Issue 23258006: drive: Move RefreshDirectory from ResourceMetadata to ChangeListLoader (Closed)

Created:
7 years, 4 months ago by hashimoto
Modified:
7 years, 4 months ago
Reviewers:
kinaba
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, oshima+watch_chromium.org, tzik+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

drive: Move RefreshDirectory from ResourceMetadata to ChangeListProcessor RefreshDirectory is a utility function whose only user is ChangeListLoader. Move RefreshDirectory to ChangeListProcessor. Use AddEntry instead of RefreshDirectory for grand root. Discard old complicated tests and write new ones. Empty map case is omitted because it results in almost no-op. BUG=193525 TEST=unit_tests R=kinaba@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218935

Patch Set 1 : #

Patch Set 2 : rebase #

Patch Set 3 : Move to ChangeListProcessor #

Patch Set 4 : Comment fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -383 lines) Patch
M chrome/browser/chromeos/drive/change_list_loader.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_loader.cc View 1 2 3 chunks +26 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_loader_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_processor.h View 1 2 3 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_processor.cc View 1 2 3 3 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_processor_unittest.cc View 1 2 9 chunks +85 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata.h View 1 4 chunks +0 lines, -47 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata.cc View 1 3 chunks +0 lines, -71 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata_unittest.cc View 1 1 chunk +0 lines, -225 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hashimoto
7 years, 4 months ago (2013-08-21 11:36:41 UTC) #1
kinaba
On 2013/08/21 11:36:41, hashimoto wrote: It sounds very good to move RefreshDirectory out of ResourceMetadata, ...
7 years, 4 months ago (2013-08-22 02:00:21 UTC) #2
hashimoto
Sounds good. Moved the stuffs to the processor. PTAL
7 years, 4 months ago (2013-08-22 03:24:37 UTC) #3
kinaba
lgtm. nice refactoring
7 years, 4 months ago (2013-08-22 04:45:19 UTC) #4
hashimoto
7 years, 4 months ago (2013-08-22 07:45:27 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 manually as r218935 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698