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

Issue 16628003: drive: Remove FileCacheObserver::OnCacheCommitted (Closed)

Created:
7 years, 6 months ago by hashimoto
Modified:
7 years, 6 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: Remove FileCacheObserver::OnCacheCommitted FileCacheObserver::CommitDirty does nothing but notifying cache observers about OnCacheComitted event whose only user is SyncClient. We should abandon this complexity by simply calling SyncClient methods from FileSystem. Remove FileCacheObserver::OnCacheCommitted Remove FileCache::CommitDirtyOnUIThread and StoreLocallyModifiedOnUIThread Rename SyncClient methods. Call SyncClient methods from FileSystem directly. Add OperationObserver::OnCacheFileUploadNeededByOperation to trigger upload from CopyOperation. BUG=247274 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205568

Patch Set 1 : #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : review fix #

Patch Set 4 : Fix PinAndUnpin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -317 lines) Patch
M chrome/browser/chromeos/drive/file_cache.h View 1 2 4 chunks +1 line, -24 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache.cc View 1 2 6 chunks +14 lines, -69 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache_observer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache_unittest.cc View 1 12 chunks +0 lines, -110 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.cc View 1 4 chunks +13 lines, -26 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation.cc View 2 chunks +34 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc View 3 chunks +13 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_observer.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.h View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/update_operation_unittest.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_unittest.cc View 1 2 3 6 chunks +26 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/drive/mock_file_cache_observer.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/sync_client.h View 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client.cc View 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/sync_client_unittest.cc View 3 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/drive/test_util.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
hashimoto
7 years, 6 months ago (2013-06-10 09:43:07 UTC) #1
kinaba
Sorry I'm late. https://codereview.chromium.org/16628003/diff/10001/chrome/browser/chromeos/drive/file_cache.cc File chrome/browser/chromeos/drive/file_cache.cc (left): https://codereview.chromium.org/16628003/diff/10001/chrome/browser/chromeos/drive/file_cache.cc#oldcode400 chrome/browser/chromeos/drive/file_cache.cc:400: CACHED_FILE_LOCALLY_MODIFIED), Except this call StoreInternal is ...
7 years, 6 months ago (2013-06-11 07:08:37 UTC) #2
hashimoto
https://codereview.chromium.org/16628003/diff/10001/chrome/browser/chromeos/drive/file_cache.cc File chrome/browser/chromeos/drive/file_cache.cc (left): https://codereview.chromium.org/16628003/diff/10001/chrome/browser/chromeos/drive/file_cache.cc#oldcode400 chrome/browser/chromeos/drive/file_cache.cc:400: CACHED_FILE_LOCALLY_MODIFIED), On 2013/06/11 07:08:37, kinaba wrote: > Except this ...
7 years, 6 months ago (2013-06-11 07:37:56 UTC) #3
kinaba
lgtm. Thanks!
7 years, 6 months ago (2013-06-11 07:52:29 UTC) #4
hashimoto
Oops, FileSystemTest.PinAndUnpin is failing because SyncClient does not delay the sync. Added EXPECT_CALL to fix ...
7 years, 6 months ago (2013-06-11 08:02:05 UTC) #5
kinaba
lgtm
7 years, 6 months ago (2013-06-11 08:03:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/16628003/34001
7 years, 6 months ago (2013-06-11 08:04:34 UTC) #7
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-11 09:38:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/16628003/34001
7 years, 6 months ago (2013-06-11 13:00:41 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-06-11 17:13:24 UTC) #10
Message was sent while issue was closed.
Change committed as 205568

Powered by Google App Engine
This is Rietveld 408576698