From 2380b9a98b17983b0b018eba85d862631c58bc68 Mon Sep 17 00:00:00 2001 From: "dominich@chromium.org" Date: Thu, 28 Jul 2011 20:10:36 +0000 Subject: See http://codereview.chromium.org/7337007. This is a continuation with a fix for the failing tests. BUG=90745,90837 TEST=none Review URL: http://codereview.chromium.org/7465051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94537 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autocomplete/autocomplete.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chrome/browser/autocomplete/autocomplete.h') diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h index 2a19545..487e8bc 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) : 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); }; -- cgit v1.1