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

Unified Diff: content/renderer/pepper/pepper_file_io_host.cc

Issue 58853009: Pepper: Add shared Utilities for file systems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add IsValid function. Created 7 years, 1 month 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: content/renderer/pepper/pepper_file_io_host.cc
diff --git a/content/renderer/pepper/pepper_file_io_host.cc b/content/renderer/pepper/pepper_file_io_host.cc
index f505313c4302a87e12120925f0258b8bb6004cfe..535210c70eaae7197e1c2c5a3840e467c75359ee 100644
--- a/content/renderer/pepper/pepper_file_io_host.cc
+++ b/content/renderer/pepper/pepper_file_io_host.cc
@@ -25,6 +25,7 @@
#include "ppapi/host/dispatch_host_message.h"
#include "ppapi/host/ppapi_host.h"
#include "ppapi/proxy/ppapi_messages.h"
+#include "ppapi/shared_impl/file_system_util.h"
#include "ppapi/shared_impl/file_type_conversion.h"
#include "ppapi/shared_impl/time_conversion.h"
#include "ppapi/thunk/enter.h"
@@ -436,8 +437,7 @@ void PepperFileIOHost::ExecutePlatformOpenFileCallback(
DCHECK(!quota_file_io_.get());
if (file_ != base::kInvalidPlatformFileValue) {
- if (file_system_type_ == PP_FILESYSTEMTYPE_LOCALTEMPORARY ||
- file_system_type_ == PP_FILESYSTEMTYPE_LOCALPERSISTENT) {
+ if (ppapi::FileSystemTypeHasQuota(file_system_type_)) {
quota_file_io_.reset(new QuotaFileIO(
new QuotaFileIODelegate, file_, file_system_url_, file_system_type_));
}

Powered by Google App Engine
This is Rietveld 408576698