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

Unified Diff: content/browser/webui/web_ui_data_source.cc

Issue 12049052: Move core url data manager classes to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years, 11 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
« no previous file with comments | « content/browser/webui/web_ui_data_source.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/web_ui_data_source.cc
===================================================================
--- content/browser/webui/web_ui_data_source.cc (revision 178359)
+++ content/browser/webui/web_ui_data_source.cc (working copy)
@@ -2,7 +2,7 @@
// 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/chrome_web_ui_data_source.h"
+#include "content/browser/webui/web_ui_data_source.h"
#include <string>
@@ -10,7 +10,6 @@
#include "base/memory/ref_counted_memory.h"
#include "base/string_util.h"
#include "content/public/common/content_client.h"
-#include "ui/base/l10n/l10n_util.h"
#include "ui/webui/jstemplate_builder.h"
#include "ui/webui/web_ui_util.h"
@@ -92,7 +91,8 @@
void ChromeWebUIDataSource::AddLocalizedString(const std::string& name,
int ids) {
- localized_strings_.SetString(name, l10n_util::GetStringUTF16(ids));
+ localized_strings_.SetString(
+ name, content::GetContentClient()->GetLocalizedString(ids));
}
void ChromeWebUIDataSource::AddLocalizedStrings(
« no previous file with comments | « content/browser/webui/web_ui_data_source.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698