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

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

Issue 18948004: drive: Remove MD5 argument from FileCache::MarkDirty (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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/truncate_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/truncate_operation.cc b/chrome/browser/chromeos/drive/file_system/truncate_operation.cc
index df3918c4e092048368e82369824a26fde729bdb2..3711aaab3556a4e94d23b95fe632fb331c84af89 100644
--- a/chrome/browser/chromeos/drive/file_system/truncate_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/truncate_operation.cc
@@ -48,12 +48,11 @@ class ScopedPlatformFileCloser {
// then marks the resource is dirty on |cache|.
FileError TruncateOnBlockingPool(internal::FileCache* cache,
const std::string& resource_id,
- const std::string& md5,
const base::FilePath& local_cache_path,
int64 length) {
DCHECK(cache);
- FileError error = cache->MarkDirty(resource_id, md5);
+ FileError error = cache->MarkDirty(resource_id);
if (error != FILE_ERROR_OK)
return error;
@@ -149,7 +148,7 @@ void TruncateOperation::TruncateAfterEnsureFileDownloadedByPath(
FROM_HERE,
base::Bind(&TruncateOnBlockingPool,
base::Unretained(cache_),
- entry->resource_id(), entry->file_specific_info().md5(),
+ entry->resource_id(),
local_file_path, length),
base::Bind(
&TruncateOperation::TruncateAfterTruncateOnBlockingPool,

Powered by Google App Engine
This is Rietveld 408576698