diff options
Diffstat (limited to 'chrome/browser/ui/search/instant_test_utils.cc')
-rw-r--r-- | chrome/browser/ui/search/instant_test_utils.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/ui/search/instant_test_utils.cc b/chrome/browser/ui/search/instant_test_utils.cc index b6e1d88..0a58371 100644 --- a/chrome/browser/ui/search/instant_test_utils.cc +++ b/chrome/browser/ui/search/instant_test_utils.cc @@ -122,8 +122,10 @@ void InstantTestBase::FocusOmniboxAndWaitForInstantOverlaySupport() { chrome::NOTIFICATION_INSTANT_OVERLAY_SUPPORT_DETERMINED, content::NotificationService::AllSources()); FocusOmnibox(); - if (!instant()->overlay() || !instant()->overlay()->supports_instant()) + if (!instant()->overlay() || + !instant()->overlay()->instant_support_determined()) { observer.Wait(); + } } void InstantTestBase::FocusOmniboxAndWaitForInstantOverlayAndNTPSupport() { @@ -134,10 +136,14 @@ void InstantTestBase::FocusOmniboxAndWaitForInstantOverlayAndNTPSupport() { chrome::NOTIFICATION_INSTANT_OVERLAY_SUPPORT_DETERMINED, content::NotificationService::AllSources()); FocusOmnibox(); - if (!instant()->ntp() || !instant()->ntp()->supports_instant()) + if (!instant()->ntp() || + !instant()->ntp()->instant_support_determined()) { ntp_observer.Wait(); - if (!instant()->overlay() || !instant()->overlay()->supports_instant()) + } + if (!instant()->overlay() || + !instant()->overlay()->instant_support_determined()) { overlay_observer.Wait(); + } } void InstantTestBase::SetOmniboxText(const std::string& text) { |