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

Unified Diff: chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc

Issue 145973016: Support cross-profile copy between Chrome OS Google Drive folders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/fileapi/file_system_backend_delegate.cc
diff --git a/chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc b/chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc
index a71993f8b7cb319c58d93d690daf6c8360d2dc63..367e9e9ae57be7ff758bae31d2e325dd7b941b96 100644
--- a/chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc
+++ b/chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/chromeos/drive/file_system_util.h"
#include "chrome/browser/chromeos/drive/fileapi/async_file_util.h"
+#include "chrome/browser/chromeos/drive/fileapi/fileapi_worker.h"
#include "chrome/browser/chromeos/drive/fileapi/webkit_file_stream_reader_impl.h"
#include "chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.h"
#include "chrome/browser/profiles/profile.h"
@@ -26,8 +27,7 @@ namespace drive {
FileSystemBackendDelegate::FileSystemBackendDelegate(
kinaba 2014/02/04 02:48:48 Probably whole the class can be removed and merged
content::BrowserContext* browser_context)
hashimoto 2014/02/04 05:44:36 nit: browser_context and profile_id_ are not neede
kinaba 2014/02/04 06:10:59 Done. Not needed and since I thought holding prof
: profile_id_(Profile::FromBrowserContext(browser_context)),
- async_file_util_(new internal::AsyncFileUtil(
- base::Bind(&util::GetFileSystemByProfileId, profile_id_))) {
+ async_file_util_(new internal::AsyncFileUtil) {
DCHECK(profile_id_);
}
@@ -56,7 +56,7 @@ FileSystemBackendDelegate::CreateFileStreamReader(
return scoped_ptr<webkit_blob::FileStreamReader>(
new internal::WebkitFileStreamReaderImpl(
- base::Bind(&util::GetFileSystemByProfileId, profile_id_),
+ base::Bind(&fileapi_internal::GetFileSystemFromUrl, url),
context->default_file_task_runner(),
file_path, offset, expected_modification_time));
}
@@ -76,7 +76,7 @@ FileSystemBackendDelegate::CreateFileStreamWriter(
return scoped_ptr<fileapi::FileStreamWriter>(
new internal::WebkitFileStreamWriterImpl(
- base::Bind(&util::GetFileSystemByProfileId, profile_id_),
+ base::Bind(&fileapi_internal::GetFileSystemFromUrl, url),
context->default_file_task_runner(),file_path, offset));
}

Powered by Google App Engine
This is Rietveld 408576698