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

Unified Diff: chrome/browser/autocomplete/autocomplete.h

Issue 7337007: Introduce a field trial for Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix onchange handling Created 9 years, 5 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/autocomplete/autocomplete.h
diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h
index 2a195451c6773884feb5b0d191ea21374bf93513..487e8bc3d373e34e9603c3821b66c24aa9a24851 100644
--- a/chrome/browser/autocomplete/autocomplete.h
+++ b/chrome/browser/autocomplete/autocomplete.h
@@ -599,13 +599,14 @@ class AutocompleteController : public ACProviderListener {
AutocompleteController(Profile* profile,
AutocompleteControllerDelegate* delegate);
#ifdef UNIT_TEST
- explicit AutocompleteController(const ACProviders& providers)
+ AutocompleteController(const ACProviders& providers, Profile* profile)
Sheridan Rawlins 2011/07/26 07:16:59 Can you move this to .cc file too (so constructors
sreeram 2011/07/26 07:36:10 Done.
sreeram 2011/07/26 08:23:35 I had to put this back. I think the conditional co
: delegate_(NULL),
providers_(providers),
keyword_provider_(NULL),
search_provider_(NULL),
done_(true),
- in_start_(false) {
+ in_start_(false),
+ profile_(profile) {
}
#endif
~AutocompleteController();
@@ -728,6 +729,8 @@ class AutocompleteController : public ACProviderListener {
// notifications until Start() has been invoked on all providers.
bool in_start_;
+ Profile* profile_;
+
DISALLOW_COPY_AND_ASSIGN(AutocompleteController);
};
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete.cc » ('j') | chrome/browser/instant/instant_field_trial.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698