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

Unified Diff: chrome/browser/ui/search/instant_extended_interactive_uitest.cc

Issue 645303003: Parametrize Suggest polling strategy and delay. Also add a parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed two comments. Created 6 years, 2 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/autocomplete/search_provider_unittest.cc ('k') | components/omnibox/omnibox_field_trial.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_extended_interactive_uitest.cc
diff --git a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
index 06d196da2e3c2ef32f9a103b7b199f9190bbd1db..df15525cc6428a95572f858f23bb0fd6d16de909 100644
--- a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
+++ b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
@@ -57,6 +57,7 @@
#include "components/omnibox/autocomplete_match.h"
#include "components/omnibox/autocomplete_provider.h"
#include "components/omnibox/autocomplete_result.h"
+#include "components/omnibox/omnibox_field_trial.h"
#include "components/omnibox/search_provider.h"
#include "components/search_engines/template_url_service.h"
#include "components/sessions/serialized_navigation_entry.h"
@@ -816,8 +817,7 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedPrefetchTest, SetPrefetchQuery) {
ui_test_utils::BROWSER_TEST_NONE);
new_tab_observer.Wait();
- omnibox()->model()->autocomplete_controller()->search_provider()->
- kMinimumTimeBetweenSuggestQueriesMs = 0;
+ OmniboxFieldTrial::kDefaultMinimumTimeBetweenSuggestQueriesMs = 0;
// Set the fake response for search query.
fake_factory()->SetFakeResponse(instant_url().Resolve("#q=flowers"),
@@ -879,8 +879,7 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedPrefetchTest, ClearPrefetchedResults) {
ui_test_utils::BROWSER_TEST_NONE);
new_tab_observer.Wait();
- omnibox()->model()->autocomplete_controller()->search_provider()->
- kMinimumTimeBetweenSuggestQueriesMs = 0;
+ OmniboxFieldTrial::kDefaultMinimumTimeBetweenSuggestQueriesMs = 0;
// Set the fake response for search query.
fake_factory()->SetFakeResponse(instant_url().Resolve("#q=flowers"),
« no previous file with comments | « chrome/browser/autocomplete/search_provider_unittest.cc ('k') | components/omnibox/omnibox_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698