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

Unified Diff: trunk/src/chrome/browser/ui/search/instant_test_utils.cc

Issue 16124009: Revert 204709 "Move instant support to SearchTabHelper." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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: trunk/src/chrome/browser/ui/search/instant_test_utils.cc
===================================================================
--- trunk/src/chrome/browser/ui/search/instant_test_utils.cc (revision 204944)
+++ trunk/src/chrome/browser/ui/search/instant_test_utils.cc (working copy)
@@ -122,8 +122,10 @@
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 @@
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) {
« no previous file with comments | « trunk/src/chrome/browser/ui/search/instant_tab.cc ('k') | trunk/src/chrome/browser/ui/search/search_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698