Chromium Code Reviews| 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); |
| }; |