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

Unified Diff: ppapi/shared_impl/file_path.cc

Issue 10387195: Open pepper files directly in browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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: ppapi/shared_impl/file_path.cc
===================================================================
--- ppapi/shared_impl/file_path.cc (revision 140403)
+++ ppapi/shared_impl/file_path.cc (working copy)
@@ -2,17 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/plugins/ppapi/file_path.h"
+#include "ppapi/shared_impl/file_path.h"
#include <string>
-#include "webkit/plugins/ppapi/plugin_module.h"
-
#if defined(OS_WIN)
#include "base/utf_string_conversions.h"
#endif
-namespace webkit {
namespace ppapi {
namespace {
@@ -44,12 +41,11 @@
}
// static
-PepperFilePath PepperFilePath::MakeModuleLocal(PluginModule* module,
+PepperFilePath PepperFilePath::MakeModuleLocal(const std::string& name,
const char* utf8_path) {
- FilePath full_path = GetFilePathFromUTF8(module->name()).Append(
+ FilePath full_path = GetFilePathFromUTF8(name).Append(
GetFilePathFromUTF8(utf8_path));
return PepperFilePath(DOMAIN_MODULE_LOCAL, full_path);
}
} // namespace ppapi
-} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698