diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 21:26:42 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 21:26:42 +0000 |
commit | 96e284571293e7706dc95acf919f2be8ac621127 (patch) | |
tree | afdf4ceb6951a0277f9a5732045e72cdff8c2d5d /chrome/test/testing_profile.h | |
parent | 9d8fc9b143c891d4aba21ac2e4724db158f47e05 (diff) | |
download | chromium_src-96e284571293e7706dc95acf919f2be8ac621127.zip chromium_src-96e284571293e7706dc95acf919f2be8ac621127.tar.gz chromium_src-96e284571293e7706dc95acf919f2be8ac621127.tar.bz2 |
Don't use the TabContents in the AutoFillInfoBarDelegateTest. Fixes a few leaks.
BUG=38481
TEST=none
Review URL: http://codereview.chromium.org/1109005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.h')
-rw-r--r-- | chrome/test/testing_profile.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h index 74d654d..82535c5 100644 --- a/chrome/test/testing_profile.h +++ b/chrome/test/testing_profile.h @@ -21,7 +21,6 @@ #include "chrome/browser/search_engines/template_url_model.h" #include "net/base/cookie_monster.h" -class PersonalDataManager; class ProfileSyncFactory; class ProfileSyncService; class SessionService; @@ -64,10 +63,6 @@ class TestingProfile : public Profile { // only matters if you're recreating the WebDataService. void CreateWebDataService(bool delete_file); - // Creates the PersonalDataManager. Consequent calls will recreate the - // service. - void CreatePersonalDataManager(); - // Destroys // Blocks until the BookmarkModel finishes loaded. This is NOT invoked from @@ -140,9 +135,6 @@ class TestingProfile : public Profile { virtual WebDataService* GetWebDataServiceWithoutCreating() { return web_data_service_.get(); } - virtual PersonalDataManager* GetPersonalDataManager() { - return personal_data_.get(); - } virtual PasswordStore* GetPasswordStore(ServiceAccessType access) { return NULL; } @@ -162,6 +154,7 @@ class TestingProfile : public Profile { virtual TemplateURLFetcher* GetTemplateURLFetcher() { return NULL; } virtual ThumbnailStore* GetThumbnailStore() { return NULL; } virtual DownloadManager* GetDownloadManager() { return NULL; } + virtual PersonalDataManager* GetPersonalDataManager() { return NULL; } virtual bool HasCreatedDownloadManager() const { return false; } virtual void InitThemes(); virtual void SetTheme(Extension* extension) {} @@ -287,10 +280,6 @@ class TestingProfile : public Profile { // The WebDataService. Only created if CreateWebDataService is invoked. scoped_refptr<WebDataService> web_data_service_; - // The PersonalDataManager. Only created if CreatePersonalDataManager is - // invoked. - scoped_ptr<PersonalDataManager> personal_data_; - // The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked. scoped_ptr<TemplateURLModel> template_url_model_; |