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

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

Issue 2704123007: mediaview: Fix ARC file system operation deferring. (Closed)
Patch Set: Addressed hidehiko's comments. Created 3 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
« no previous file with comments | « chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.cc
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.cc b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.cc
index b13ff288099efa2df6610b62d851f0fa833dd9b5..8f6fd077378ce8561fa13b5e4e3c80949a2f4a54 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.cc
+++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.cc
@@ -34,7 +34,10 @@ void GetFileSizeOnUIThread(const GURL& url,
auto* runner =
ArcServiceManager::GetGlobalService<ArcFileSystemOperationRunner>();
if (!runner) {
+ LOG(ERROR) << "ArcFileSystemOperationRunner unavailable. "
+ << "File system operations are dropped.";
callback.Run(-1);
+ return;
}
runner->GetFileSize(url, callback);
}
@@ -45,6 +48,8 @@ void OpenFileToReadOnUIThread(const GURL& url,
auto* runner =
ArcServiceManager::GetGlobalService<ArcFileSystemOperationRunner>();
if (!runner) {
+ LOG(ERROR) << "ArcFileSystemOperationRunner unavailable. "
+ << "File system operations are dropped.";
callback.Run(mojo::ScopedHandle());
return;
}
@@ -58,6 +63,8 @@ void GetDocumentOnUIThread(const std::string& authority,
auto* runner =
ArcServiceManager::GetGlobalService<ArcFileSystemOperationRunner>();
if (!runner) {
+ LOG(ERROR) << "ArcFileSystemOperationRunner unavailable. "
+ << "File system operations are dropped.";
callback.Run(mojom::DocumentPtr());
return;
}
@@ -71,6 +78,8 @@ void GetChildDocumentsOnUIThread(const std::string& authority,
auto* runner =
ArcServiceManager::GetGlobalService<ArcFileSystemOperationRunner>();
if (!runner) {
+ LOG(ERROR) << "ArcFileSystemOperationRunner unavailable. "
+ << "File system operations are dropped.";
callback.Run(base::nullopt);
return;
}
« no previous file with comments | « chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698