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

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_unittest.cc

Issue 23804002: Make OmniboxEditModel::UpdatePermanentText() fetch the new text itself rather (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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/omnibox/omnibox_edit_model.cc ('k') | chrome/browser/ui/omnibox/omnibox_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/omnibox_edit_unittest.cc
===================================================================
--- chrome/browser/ui/omnibox/omnibox_edit_unittest.cc (revision 220446)
+++ chrome/browser/ui/omnibox/omnibox_edit_unittest.cc (working copy)
@@ -192,7 +192,8 @@
OmniboxEditModel model(&view, &controller, &profile);
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(input); ++i) {
- model.UpdatePermanentText(ASCIIToUTF16(input[i].perm_text));
+ toolbar_model()->set_text(ASCIIToUTF16(input[i].perm_text));
+ model.UpdatePermanentText();
toolbar_model()->set_replace_search_url_with_search_terms(
input[i].extracted_search_terms);
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | chrome/browser/ui/omnibox/omnibox_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698