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

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

Issue 232023004: Ensures the autocomplete_controller input is saved and restored when changing tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed broken browser test. Created 6 years, 8 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/omnibox/omnibox_view_browsertest.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc b/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
index 76bb642cfc9b82ef9dd1d0de39914c5ec809db3c..aec4ddef97a691ebec67e8ba909b0a88b9cd4e6b 100644
--- a/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
+++ b/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
@@ -1460,7 +1460,7 @@ IN_PROC_BROWSER_TEST_F(OmniboxViewTest,
omnibox_view->GetSelectionBounds(&start, &end);
EXPECT_TRUE(start != end);
base::string16 old_autocomplete_text =
- omnibox_view->model()->autocomplete_controller()->input().text();
+ omnibox_view->model()->autocomplete_controller()->input_.text();
// Unfocus the omnibox. This should clear the text field selection and
// close the popup, but should not run autocomplete.
@@ -1471,7 +1471,7 @@ IN_PROC_BROWSER_TEST_F(OmniboxViewTest,
EXPECT_TRUE(start == end);
EXPECT_EQ(old_autocomplete_text,
- omnibox_view->model()->autocomplete_controller()->input().text());
+ omnibox_view->model()->autocomplete_controller()->input_.text());
}
IN_PROC_BROWSER_TEST_F(OmniboxViewTest, Paste) {
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698