diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 22:30:55 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 22:30:55 +0000 |
commit | 7f998eba8ae7e97c40112a8260ed76550c570c52 (patch) | |
tree | 4ffc13dae6568ffc6990617360935de11a4d46cc /chrome/test/testing_profile.cc | |
parent | f3f8eaaa0439b4a3d611b1efccfb89a4e8ac53b1 (diff) | |
download | chromium_src-7f998eba8ae7e97c40112a8260ed76550c570c52.zip chromium_src-7f998eba8ae7e97c40112a8260ed76550c570c52.tar.gz chromium_src-7f998eba8ae7e97c40112a8260ed76550c570c52.tar.bz2 |
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
Diffstat (limited to 'chrome/test/testing_profile.cc')
-rw-r--r-- | chrome/test/testing_profile.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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()) |