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

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

Issue 7008005: base/i18n: Pass |str| as const reference in BreakIterator::Init(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to ToT Created 9 years, 7 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/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 a90976622a94f063ee89b5b5ee12940f66030159..c94f0e5f39b48811af679c6f20fd671337ce831c 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -1043,7 +1043,7 @@ void DownloadItemView::SizeLabelToMinWidth() {
// Using BREAK_WORD can work in most cases, but it can also break
// lines where it should not. Using BREAK_LINE is safer although
// slower for Chinese/Japanese. This is not perf-critical at all, though.
- base::i18n::BreakIterator iter(&text, base::i18n::BreakIterator::BREAK_LINE);
+ base::i18n::BreakIterator iter(text, base::i18n::BreakIterator::BREAK_LINE);
bool status = iter.Init();
DCHECK(status);

Powered by Google App Engine
This is Rietveld 408576698