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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.cc

Issue 6602070: Port autocomplete_edit_view_browsertest.cc to Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PrimarySelection test. Created 9 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit.cc
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc
index efeafd493f41c77068766a2c125bced5ce399f0f..859966b881bbc37934cffe328781de489697e279 100644
--- a/chrome/browser/autocomplete/autocomplete_edit.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit.cc
@@ -717,7 +717,7 @@ static bool IsPreconnectable(AutocompleteMatch::Type type) {
}
void AutocompleteEditModel::OnResultChanged(bool default_match_changed) {
- const bool was_open = popup_->view()->IsOpen();
+ const bool was_open = popup_->IsOpen();
if (default_match_changed) {
string16 inline_autocomplete_text;
string16 keyword;
@@ -751,7 +751,7 @@ void AutocompleteEditModel::OnResultChanged(bool default_match_changed) {
popup_->OnResultChanged();
}
- if (popup_->view()->IsOpen()) {
+ if (popup_->IsOpen()) {
PopupBoundsChangedTo(popup_->view()->GetTargetBounds());
} else if (was_open) {
// Accepts the temporary text as the user text, because it makes little
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698