|
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
Total comments: 6
|
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
|
Total messages: 10 (0 generated)
|