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

Unified Diff: content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc

Issue 424213006: Extract PepperFileSystemTypeToFileSystemType() from ppapi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: looks like CONTENT_EXPORT is not needed? Created 6 years, 5 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 | « no previous file | content/common/pepper_file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
diff --git a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
index 5eec410500202c6400e5bdb0504fb1cf53b64527..acebdc058b7c1ee97e62469b08c9e18831207e5a 100644
--- a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
+++ b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
@@ -8,6 +8,7 @@
#include "base/callback.h"
#include "content/browser/renderer_host/pepper/pepper_file_io_host.h"
#include "content/browser/renderer_host/pepper/quota_reservation.h"
+#include "content/common/pepper_file_util.h"
#include "content/public/browser/browser_ppapi_host.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/plugin_service.h"
@@ -163,7 +164,7 @@ int32_t PepperFileSystemBrowserHost::OnHostMsgOpen(
called_open_ = true;
fileapi::FileSystemType file_system_type =
- ppapi::PepperFileSystemTypeToFileSystemType(type_);
+ PepperFileSystemTypeToFileSystemType(type_);
if (file_system_type == fileapi::kFileSystemTypeUnknown)
return PP_ERROR_FAILED;
@@ -426,7 +427,7 @@ bool PepperFileSystemBrowserHost::ShouldCreateQuotaReservation() const {
CHECK(quota_manager_proxy);
CHECK(quota_manager_proxy->quota_manager());
fileapi::FileSystemType file_system_type =
- ppapi::PepperFileSystemTypeToFileSystemType(type_);
+ PepperFileSystemTypeToFileSystemType(type_);
return !quota_manager_proxy->quota_manager()->IsStorageUnlimited(
root_url_.GetOrigin(),
fileapi::FileSystemTypeToQuotaStorageType(file_system_type));
@@ -441,7 +442,7 @@ void PepperFileSystemBrowserHost::CreateQuotaReservation(
base::Bind(&QuotaReservation::Create,
file_system_context_,
root_url_.GetOrigin(),
- ppapi::PepperFileSystemTypeToFileSystemType(type_)),
+ PepperFileSystemTypeToFileSystemType(type_)),
base::Bind(&PepperFileSystemBrowserHost::GotQuotaReservation,
weak_factory_.GetWeakPtr(),
callback));
« no previous file with comments | « no previous file | content/common/pepper_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698