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

Unified Diff: chrome/browser/chromeos/drive/file_system.cc

Issue 68543002: drive: Support offline delete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stop modifying local state after server side update Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/file_system.cc
diff --git a/chrome/browser/chromeos/drive/file_system.cc b/chrome/browser/chromeos/drive/file_system.cc
index eb9d906ca73c60de380c7365fdc37d2153c5dc5a..20fcf9935d6d07ff17d60f1c08c858caab0e85e6 100644
--- a/chrome/browser/chromeos/drive/file_system.cc
+++ b/chrome/browser/chromeos/drive/file_system.cc
@@ -297,7 +297,6 @@ void FileSystem::ResetComponents() {
remove_operation_.reset(
new file_system::RemoveOperation(blocking_task_runner_.get(),
observer,
- scheduler_,
resource_metadata_,
cache_));
touch_operation_.reset(new file_system::TouchOperation(
@@ -886,6 +885,10 @@ void FileSystem::OnCacheFileUploadNeededByOperation(
sync_client_->AddUploadTask(ClientContext(USER_INITIATED), local_id);
}
+void FileSystem::OnEntryRemovedByOperation(const std::string& local_id) {
+ sync_client_->AddRemoveTask(local_id);
+}
+
void FileSystem::OnDirectoryChanged(const base::FilePath& directory_path) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
« no previous file with comments | « chrome/browser/chromeos/drive/file_system.h ('k') | chrome/browser/chromeos/drive/file_system/operation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698