Index: chrome/browser/ui/webui/md_settings_ui.cc |
diff --git a/chrome/browser/ui/webui/md_settings_ui.cc b/chrome/browser/ui/webui/md_settings_ui.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cfd4376216cb9508b0b354eb5e38cf3e82a6dbbf |
--- /dev/null |
+++ b/chrome/browser/ui/webui/md_settings_ui.cc |
@@ -0,0 +1,34 @@ |
+// 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 "chrome/browser/ui/webui/md_settings_ui.h" |
+ |
+#include <string> |
+ |
+#include "base/values.h" |
+#include "chrome/common/url_constants.h" |
+#include "chrome/grit/generated_resources.h" |
+#include "content/public/browser/web_contents.h" |
+#include "content/public/browser/web_ui.h" |
+#include "content/public/browser/web_ui_data_source.h" |
+#include "grit/browser_resources.h" |
+ |
+MdSettingsUI::MdSettingsUI(content::WebUI* web_ui) |
+ : content::WebUIController(web_ui) { |
+ content::WebUIDataSource* html_source = |
+ content::WebUIDataSource::Create(chrome::kChromeUIMdSettingsHost); |
+// html_source->SetUseJsonJSFormatV2(); |
stevenjb
2015/02/04 02:19:15
elim or comment
Oren Blasberg
2015/02/04 18:31:51
Done.
|
+ |
+ html_source->SetDefaultResource(IDR_MD_SETTINGS_UI_HTML); |
+ |
+ html_source->AddLocalizedString("settings_title", IDS_SETTINGS_TITLE); |
+ |
+ html_source->SetJsonPath("strings.js"); |
+ |
+ content::WebUIDataSource::Add(web_ui->GetWebContents()->GetBrowserContext(), |
+ html_source); |
+} |
+ |
+MdSettingsUI::~MdSettingsUI() { |
+} |