From 7f998eba8ae7e97c40112a8260ed76550c570c52 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Wed, 17 Mar 2010 22:30:55 +0000 Subject: Enable AutoFill when in incognito mode. The infobar will not be shown, but profiles can be manipulated in the AutoFill dialog, and the data from those profiles can be used to fill forms in an incognito window. BUG=38009 TEST=none Review URL: http://codereview.chromium.org/1064002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41887 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/testing_profile.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/test/testing_profile.cc') diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc index 27708f2..9a5b1b9 100644 --- a/chrome/test/testing_profile.cc +++ b/chrome/test/testing_profile.cc @@ -7,6 +7,7 @@ #include "build/build_config.h" #include "base/command_line.h" #include "base/string_util.h" +#include "chrome/browser/autofill/personal_data_manager.h" #include "chrome/browser/bookmarks/bookmark_model.h" #include "chrome/browser/dom_ui/ntp_resource_cache.h" #include "chrome/browser/history/history_backend.h" @@ -229,6 +230,10 @@ void TestingProfile::CreateWebDataService(bool delete_file) { web_data_service_->Init(GetPath()); } +void TestingProfile::CreatePersonalDataManager() { + personal_data_.reset(new PersonalDataManager(this)); +} + void TestingProfile::BlockUntilBookmarkModelLoaded() { DCHECK(bookmark_bar_model_.get()); if (bookmark_bar_model_->IsLoaded()) -- cgit v1.1