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

Unified Diff: chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc

Issue 162723003: Migrate CandidateWindow::Entry to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browsertest compilation Created 6 years, 10 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/chromeos/input_method/candidate_window_controller_impl.cc
diff --git a/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc b/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc
index 58bc6cad8dd158fa79ea70abbe8d764845f88a50..f2721a9bb974eff3a50de90b87dae4a629800c65 100644
--- a/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc
@@ -152,16 +152,16 @@ void CandidateWindowControllerImpl::UpdateLookupTable(
}
void CandidateWindowControllerImpl::UpdatePreeditText(
- const std::string& utf8_text, unsigned int cursor, bool visible) {
+ const base::string16& text, unsigned int cursor, bool visible) {
// If it's not visible, hide the preedit text and return.
- if (!visible || utf8_text.empty()) {
+ if (!visible || text.empty()) {
if (candidate_window_view_)
candidate_window_view_->HidePreeditText();
return;
}
if (!candidate_window_view_)
InitCandidateWindowView();
- candidate_window_view_->UpdatePreeditText(utf8_text);
+ candidate_window_view_->UpdatePreeditText(text);
candidate_window_view_->ShowPreeditText();
}

Powered by Google App Engine
This is Rietveld 408576698