| Index: components/wug/data_source_util.cc
|
| diff --git a/components/wug/data_source_util.cc b/components/wug/data_source_util.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..99f94827e456ab8910b7a7cfa35a03a6517ea810
|
| --- /dev/null
|
| +++ b/components/wug/data_source_util.cc
|
| @@ -0,0 +1,18 @@
|
| +// 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/wug/data_source_util.h"
|
| +#include "content/public/browser/web_ui_data_source.h"
|
| +#include "grit/components_resources.h"
|
| +
|
| +namespace wug {
|
| +
|
| +void SetUpDataSource(content::WebUIDataSource* data_source) {
|
| + data_source->AddResourcePath("wug/webui-view.html", IDR_WUG_WEBUI_VIEW_HTML);
|
| + data_source->AddResourcePath("wug/webui-view.js", IDR_WUG_WEBUI_VIEW_JS);
|
| + data_source->AddResourcePath("wug/context.js", IDR_WUG_CONTEXT_JS);
|
| + data_source->AddResourcePath("wug/context.html", IDR_WUG_CONTEXT_HTML);
|
| +}
|
| +
|
| +} // namespace wug
|
|
|