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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_data_source.cc

Issue 7148023: Add content-security-policy (CSP) to chrome://flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: chrome/browser/ui/webui/chrome_web_ui_data_source.cc
===================================================================
--- chrome/browser/ui/webui/chrome_web_ui_data_source.cc (revision 89497)
+++ chrome/browser/ui/webui/chrome_web_ui_data_source.cc (working copy)
@@ -18,6 +18,11 @@
ChromeWebUIDataSource::~ChromeWebUIDataSource() {
}
+void ChromeWebUIDataSource::AddString(const std::string& name,
+ const string16& value) {
+ localized_strings_.SetString(name, value);
+}
+
void ChromeWebUIDataSource::AddLocalizedString(const std::string& name,
int ids) {
localized_strings_.SetString(name, l10n_util::GetStringUTF16(ids));

Powered by Google App Engine
This is Rietveld 408576698