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

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

Issue 15648007: Call FileSystem::TouchFile from FileSystemProxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system_proxy.cc
diff --git a/chrome/browser/chromeos/drive/file_system_proxy.cc b/chrome/browser/chromeos/drive/file_system_proxy.cc
index 675a68b86aca5763052aaea950f3ce79f6e8b2a5..e2807851ed85f2fee8cd9f419f1c11e9e64694b8 100644
--- a/chrome/browser/chromeos/drive/file_system_proxy.cc
+++ b/chrome/browser/chromeos/drive/file_system_proxy.cc
@@ -620,11 +620,18 @@ void FileSystemProxy::TouchFile(
const FileSystemOperation::StatusCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- // TODO(kinaba,kochi): crbug.com/144369. Support this operations once we have
- // migrated to the new Drive API.
- MessageLoopProxy::current()->PostTask(
- FROM_HERE,
- base::Bind(callback, base::PLATFORM_FILE_ERROR_INVALID_OPERATION));
+ base::FilePath file_path;
+ if (!ValidateUrl(url, &file_path))
+ return;
+
+ CallFileSystemMethodOnUIThread(
+ base::Bind(&FileSystemInterface::TouchFile,
+ base::Unretained(file_system_),
+ file_path, last_access_time, last_modified_time,
+ google_apis::CreateRelayCallback(
+ base::Bind(&FileSystemProxy::OnStatusCallback,
+ this,
+ callback))));
}
void FileSystemProxy::CreateSnapshotFile(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698