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

Unified Diff: components/omnibox/browser/omnibox_edit_model.cc

Issue 2779893005: Continue to clean c_str() calls. (Closed)
Patch Set: Revert changes in font_service_app.cc Created 3 years, 9 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: components/omnibox/browser/omnibox_edit_model.cc
diff --git a/components/omnibox/browser/omnibox_edit_model.cc b/components/omnibox/browser/omnibox_edit_model.cc
index 3e195f8bb0ac10890e77d55f23da405a34e1a9ce..410347bbba5e734c24c08f829aa58f6f03b12192 100644
--- a/components/omnibox/browser/omnibox_edit_model.cc
+++ b/components/omnibox/browser/omnibox_edit_model.cc
@@ -809,8 +809,8 @@ void OmniboxEditModel::ClearKeyword() {
// State 4 above.
is_keyword_hint_ = true;
const base::string16 window_text = keyword_ + view_->GetText();
- view_->SetWindowTextAndCaretPos(window_text.c_str(), keyword_.length(),
- false, true);
+ view_->SetWindowTextAndCaretPos(window_text, keyword_.length(), false,
+ true);
} else {
// States 1-3 above.
view_->OnBeforePossibleChange();
« no previous file with comments | « components/omnibox/browser/builtin_provider.cc ('k') | components/policy/core/common/cloud/cloud_policy_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698