Index: components/webui_generator/data_source_util.cc |
diff --git a/components/webui_generator/data_source_util.cc b/components/webui_generator/data_source_util.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a3103cdc7cbb4db9a721d84e1f94eb03aa01fc18 |
--- /dev/null |
+++ b/components/webui_generator/data_source_util.cc |
@@ -0,0 +1,22 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/webui_generator/data_source_util.h" |
+#include "content/public/browser/web_ui_data_source.h" |
+#include "grit/components_resources.h" |
+ |
+namespace webui_generator { |
+ |
+void SetUpDataSource(content::WebUIDataSource* data_source) { |
+ data_source->AddResourcePath("webui_generator/webui-view.html", |
+ IDR_WUG_WEBUI_VIEW_HTML); |
+ data_source->AddResourcePath("webui_generator/webui-view.js", |
+ IDR_WUG_WEBUI_VIEW_JS); |
+ data_source->AddResourcePath("webui_generator/context.js", |
+ IDR_WUG_CONTEXT_JS); |
+ data_source->AddResourcePath("webui_generator/context.html", |
+ IDR_WUG_CONTEXT_HTML); |
+} |
+ |
+} // namespace webui_generator |