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

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

Issue 26803004: PPAPI: Add PluginPrivateFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « content/content_tests.gypi ('k') | ppapi/api/private/ppb_isolated_file_system_private.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_file_system_host.cc
diff --git a/content/renderer/pepper/pepper_file_system_host.cc b/content/renderer/pepper/pepper_file_system_host.cc
index 30aea7298c8870cf63ce73ef4203377bd6795330..be5cead8240a6f0e0885d65f575f7286679ddc01 100644
--- a/content/renderer/pepper/pepper_file_system_host.cc
+++ b/content/renderer/pepper/pepper_file_system_host.cc
@@ -24,23 +24,6 @@
namespace content {
-namespace {
-
-// TODO(nhiroki): Move this function somewhere else to be shared.
-std::string IsolatedFileSystemTypeToRootName(
- PP_IsolatedFileSystemType_Private type) {
- switch (type) {
- case PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_INVALID:
- break;
- case PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_CRX:
- return "crxfs";
- }
- NOTREACHED() << type;
- return std::string();
-}
-
-} // namespace
-
PepperFileSystemHost::PepperFileSystemHost(RendererPpapiHost* host,
PP_Instance instance,
PP_Resource resource,
@@ -156,7 +139,7 @@ int32_t PepperFileSystemHost::OnHostMsgInitIsolatedFileSystem(
return PP_ERROR_FAILED;
const GURL& url = view->GetWebView()->mainFrame()->document().url();
- const std::string root_name = IsolatedFileSystemTypeToRootName(type);
+ const std::string root_name = ppapi::IsolatedFileSystemTypeToRootName(type);
if (root_name.empty())
return PP_ERROR_BADARGUMENT;
root_url_ = GURL(fileapi::GetIsolatedFileSystemRootURIString(
« no previous file with comments | « content/content_tests.gypi ('k') | ppapi/api/private/ppb_isolated_file_system_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698