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

Unified Diff: chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc

Issue 177373010: [Privet FS] Allow files to be able to be copied in to the privet filesystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/local_discovery/storage/privet_filesystem_async_util.cc
diff --git a/chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc b/chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc
index 6fe3b3f5450478819bb81d44a4fcbb388a264b18..7bd703365f8c92bd7a71eb1c6ffaee55e7fb7cc0 100644
--- a/chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc
+++ b/chrome/browser/local_discovery/storage/privet_filesystem_async_util.cc
@@ -148,8 +148,14 @@ void PrivetFileSystemAsyncUtil::CopyInForeignFile(
const base::FilePath& src_file_path,
const fileapi::FileSystemURL& dest_url,
const StatusCallback& callback) {
- NOTIMPLEMENTED();
- callback.Run(base::File::FILE_ERROR_INVALID_OPERATION);
+ content::BrowserThread::PostTask(
+ content::BrowserThread::UI,
+ FROM_HERE,
+ base::Bind(&PrivetFileSystemOperationFactory::CopyInForeignFile,
+ operation_factory_,
+ src_file_path,
+ dest_url,
+ callback));
}
void PrivetFileSystemAsyncUtil::DeleteFile(

Powered by Google App Engine
This is Rietveld 408576698