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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 113403006: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index ee6ca0ee4a1f67b22fbae2dd387d3327354fc85d..0658bb573a34e92d5e704c50ef0ed520cfdc4863 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -1243,11 +1243,11 @@ void DownloadItemView::SizeLabelToMinWidth() {
// This can be a low surrogate codepoint, but u_isUWhiteSpace will
// return false and inserting a new line after a surrogate pair
// is perfectly ok.
- char16 line_end_char = current_text[pos - 1];
+ base::char16 line_end_char = current_text[pos - 1];
if (u_isUWhiteSpace(line_end_char))
- current_text.replace(pos - 1, 1, 1, char16('\n'));
+ current_text.replace(pos - 1, 1, 1, base::char16('\n'));
else
- current_text.insert(pos, 1, char16('\n'));
+ current_text.insert(pos, 1, base::char16('\n'));
dangerous_download_label_->SetText(current_text);
size = dangerous_download_label_->GetPreferredSize();
@@ -1286,7 +1286,7 @@ void DownloadItemView::UpdateAccessibleName() {
if (IsShowingWarningDialog()) {
new_name = dangerous_download_label_->text();
} else {
- new_name = status_text_ + char16(' ') +
+ new_name = status_text_ + base::char16(' ') +
download()->GetFileNameToReportUser().LossyDisplayName();
}

Powered by Google App Engine
This is Rietveld 408576698