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

Unified Diff: chrome/browser/ui/views/find_bar_view.cc

Issue 8142026: Revert 104076 - Change std::wstring to string16 for views::Link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 | « chrome/browser/ui/views/external_protocol_dialog.cc ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/find_bar_view.cc
===================================================================
--- chrome/browser/ui/views/find_bar_view.cc (revision 104083)
+++ chrome/browser/ui/views/find_bar_view.cc (working copy)
@@ -167,7 +167,7 @@
}
string16 FindBarView::GetMatchCountText() const {
- return match_count_text_->GetText();
+ return WideToUTF16Hack(match_count_text_->GetText());
}
void FindBarView::UpdateForResult(const FindNotificationDetails& result,
@@ -184,17 +184,17 @@
}
if (!find_text.empty() && have_valid_range) {
- match_count_text_->SetText(
+ match_count_text_->SetText(UTF16ToWide(
l10n_util::GetStringFUTF16(IDS_FIND_IN_PAGE_COUNT,
base::IntToString16(result.active_match_ordinal()),
- base::IntToString16(result.number_of_matches())));
+ base::IntToString16(result.number_of_matches()))));
UpdateMatchCountAppearance(result.number_of_matches() == 0 &&
result.final_update());
} else {
// If there was no text entered, we don't show anything in the result count
// area.
- match_count_text_->SetText(string16());
+ match_count_text_->SetText(std::wstring());
UpdateMatchCountAppearance(false);
}
@@ -207,7 +207,7 @@
}
void FindBarView::ClearMatchCount() {
- match_count_text_->SetText(string16());
+ match_count_text_->SetText(L"");
UpdateMatchCountAppearance(false);
Layout();
SchedulePaint();
« no previous file with comments | « chrome/browser/ui/views/external_protocol_dialog.cc ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698