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

Unified Diff: ui/base/l10n/l10n_util_win.cc

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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 | « ui/base/l10n/l10n_util_win.h ('k') | ui/base/l10n/time_format_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util_win.cc
diff --git a/ui/base/l10n/l10n_util_win.cc b/ui/base/l10n/l10n_util_win.cc
index bc6a7e9792ebf4fb57963f90c9963706bf0e227b..4b91fa229bb87e235abee48bd7ba4620f7a98668 100644
--- a/ui/base/l10n/l10n_util_win.cc
+++ b/ui/base/l10n/l10n_util_win.cc
@@ -20,7 +20,7 @@
namespace {
-void AdjustLogFont(const string16& font_family,
+void AdjustLogFont(const base::string16& font_family,
double font_size_scaler,
double dpi_scale,
LOGFONT* logfont) {
@@ -113,7 +113,7 @@ bool IsLocaleSupportedByOS(const std::string& locale) {
!LowerCaseEqualsASCII(locale, "am") || IsFontPresent(L"Abyssinica SIL"));
}
-bool NeedOverrideDefaultUIFont(string16* override_font_family,
+bool NeedOverrideDefaultUIFont(base::string16* override_font_family,
double* font_size_scaler) {
// This is rather simple-minded to deal with the UI font size
// issue for some Indian locales (ml, bn, hi) for which
@@ -130,7 +130,7 @@ bool NeedOverrideDefaultUIFont(string16* override_font_family,
ui_font_size_scaler_id = IDS_UI_FONT_SIZE_SCALER_XP;
}
- string16 ui_font_family = GetStringUTF16(ui_font_family_id);
+ base::string16 ui_font_family = GetStringUTF16(ui_font_family_id);
int scaler100;
if (!base::StringToInt(l10n_util::GetStringUTF16(ui_font_size_scaler_id),
&scaler100))
@@ -161,7 +161,7 @@ void AdjustUIFont(LOGFONT* logfont) {
}
void AdjustUIFontForDIP(float dpi_scale, LOGFONT* logfont) {
- string16 ui_font_family = L"default";
+ base::string16 ui_font_family = L"default";
double ui_font_size_scaler = 1;
if (NeedOverrideDefaultUIFont(&ui_font_family, &ui_font_size_scaler) ||
dpi_scale != 1) {
@@ -170,7 +170,7 @@ void AdjustUIFontForDIP(float dpi_scale, LOGFONT* logfont) {
}
void AdjustUIFontForWindow(HWND hwnd) {
- string16 ui_font_family;
+ base::string16 ui_font_family;
double ui_font_size_scaler;
if (NeedOverrideDefaultUIFont(&ui_font_family, &ui_font_size_scaler)) {
LOGFONT logfont;
« no previous file with comments | « ui/base/l10n/l10n_util_win.h ('k') | ui/base/l10n/time_format_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698