summaryrefslogtreecommitdiffstats
path: root/gin/modules/module_runner_delegate.cc
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 07:30:55 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 07:30:55 +0000
commit467834b30f40d1aff0031fbb7660fb211c8112e4 (patch)
tree8e1f09b420bfda00a238ed6613642ac656720d2e /gin/modules/module_runner_delegate.cc
parent3ac7e07966540fe5b41bcc60ef14ff6b18fe6057 (diff)
downloadchromium_src-467834b30f40d1aff0031fbb7660fb211c8112e4.zip
chromium_src-467834b30f40d1aff0031fbb7660fb211c8112e4.tar.gz
chromium_src-467834b30f40d1aff0031fbb7660fb211c8112e4.tar.bz2
Teach mojo_js_bindings_unittests to load generated JS files
This CL generalizes gin::FileModuleProvider to be able to load modules from several places in the file system. I've then made use of this facility in mojo_js_bindings_unittests to load generated JavaScript modules created by mojom_js_generator.py, similar to how C++ files can #include from the generated mojom directory. I've deleted sample_service.js now that we can load it from the generated directory. BUG=317398 Review URL: https://codereview.chromium.org/81673002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/modules/module_runner_delegate.cc')
-rw-r--r--gin/modules/module_runner_delegate.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gin/modules/module_runner_delegate.cc b/gin/modules/module_runner_delegate.cc
index 50b9f5e..3f2422c 100644
--- a/gin/modules/module_runner_delegate.cc
+++ b/gin/modules/module_runner_delegate.cc
@@ -8,8 +8,9 @@
namespace gin {
-ModuleRunnerDelegate::ModuleRunnerDelegate(const base::FilePath& module_base)
- : module_provider_(module_base) {
+ModuleRunnerDelegate::ModuleRunnerDelegate(
+ const std::vector<base::FilePath>& search_paths)
+ : module_provider_(search_paths) {
}
ModuleRunnerDelegate::~ModuleRunnerDelegate() {