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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.cc

Issue 2637163002: Defer ARC file system operations while ARC is booting. (Closed)
Patch Set: Review ready. Created 3 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/arc/fileapi/arc_content_file_system_file_stream_reader.cc
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.cc b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.cc
index a1302df9667a533f420f2e0ab9d20ebd5a7c4597..9f4726aea8116214da557ae9dbccd4b00e974b73 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.cc
+++ b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_stream_reader.cc
@@ -9,7 +9,7 @@
#include "base/files/file.h"
#include "base/threading/thread_restrictions.h"
-#include "chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h"
+#include "chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.h"
#include "content/public/browser/browser_thread.h"
#include "mojo/edk/embedder/embedder.h"
#include "net/base/io_buffer.h"
@@ -62,8 +62,8 @@ int ArcContentFileSystemFileStreamReader::Read(
ReadInternal(buffer, buffer_length, callback);
return net::ERR_IO_PENDING;
}
- file_system_instance_util::OpenFileToReadOnIOThread(
- arc_url_,
+ file_system_operation_runner_util::OpenFileToReadOnIOThread(
+ arc_url_.spec(),
base::Bind(&ArcContentFileSystemFileStreamReader::OnOpenFile,
weak_ptr_factory_.GetWeakPtr(), make_scoped_refptr(buffer),
buffer_length, callback));
@@ -73,9 +73,10 @@ int ArcContentFileSystemFileStreamReader::Read(
int64_t ArcContentFileSystemFileStreamReader::GetLength(
const net::Int64CompletionCallback& callback) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
- file_system_instance_util::GetFileSizeOnIOThread(
- arc_url_, base::Bind(&ArcContentFileSystemFileStreamReader::OnGetFileSize,
- weak_ptr_factory_.GetWeakPtr(), callback));
+ file_system_operation_runner_util::GetFileSizeOnIOThread(
+ arc_url_.spec(),
+ base::Bind(&ArcContentFileSystemFileStreamReader::OnGetFileSize,
+ weak_ptr_factory_.GetWeakPtr(), callback));
return net::ERR_IO_PENDING;
}

Powered by Google App Engine
This is Rietveld 408576698