From 0a01940e3b1f3ed559fa62b72ddf401443aeaade Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Sat, 19 Jun 2010 00:07:24 +0000 Subject: AutoFill: Remove dead code. BUG=none TEST=none Review URL: http://codereview.chromium.org/2833020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50304 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autofill/personal_data_manager.cc | 14 -------------- chrome/browser/autofill/personal_data_manager.h | 8 -------- 2 files changed, 22 deletions(-) (limited to 'chrome/browser/autofill') diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc index 66dbcb6..05bc8ab 100644 --- a/chrome/browser/autofill/personal_data_manager.cc +++ b/chrome/browser/autofill/personal_data_manager.cc @@ -119,8 +119,6 @@ void PersonalDataManager::RemoveObserver( bool PersonalDataManager::ImportFormData( const std::vector& form_structures, AutoFillManager* autofill_manager) { - InitializeIfNeeded(); - AutoLock lock(unique_ids_lock_); // Parse the form and construct a profile based on the information that is // possible to import. @@ -374,8 +372,6 @@ void PersonalDataManager::SetCreditCards( void PersonalDataManager::GetPossibleFieldTypes(const string16& text, FieldTypeSet* possible_types) { - InitializeIfNeeded(); - string16 clean_info = StringToLowerASCII(CollapseWhitespace(text, false)); if (clean_info.empty()) { possible_types->insert(EMPTY_TYPE); @@ -409,7 +405,6 @@ void PersonalDataManager::GetPossibleFieldTypes(const string16& text, } bool PersonalDataManager::HasPassword() { - InitializeIfNeeded(); return !password_hash_.empty(); } @@ -457,7 +452,6 @@ void PersonalDataManager::Refresh() { PersonalDataManager::PersonalDataManager() : profile_(NULL), - is_initialized_(false), is_data_loaded_(false), pending_profiles_query_(0), pending_creditcards_query_(0) { @@ -469,14 +463,6 @@ void PersonalDataManager::Init(Profile* profile) { LoadCreditCards(); } -void PersonalDataManager::InitializeIfNeeded() { - if (is_initialized_) - return; - - is_initialized_ = true; - // TODO(jhawkins): Load data. -} - int PersonalDataManager::CreateNextUniqueID(std::set* unique_ids) { // Profile IDs MUST start at 1 to allow 0 as an error value when reading // the ID from the WebDB (see LoadData()). diff --git a/chrome/browser/autofill/personal_data_manager.h b/chrome/browser/autofill/personal_data_manager.h index b8c7f2f..cfa7109 100644 --- a/chrome/browser/autofill/personal_data_manager.h +++ b/chrome/browser/autofill/personal_data_manager.h @@ -159,11 +159,6 @@ class PersonalDataManager // Returns the profile of the tab contents. Profile* profile(); - // Initializes the object if needed. This should be called at the beginning - // of all the public functions to make sure that the object has been properly - // initialized before use. - virtual void InitializeIfNeeded(); - // This will create and reserve a new unique ID for a profile. int CreateNextUniqueID(std::set* unique_ids); @@ -200,9 +195,6 @@ class PersonalDataManager // The profile hosting this PersonalDataManager. Profile* profile_; - // True if PersonalDataManager is initialized. - bool is_initialized_; - // True if personal data has been loaded from the web database. bool is_data_loaded_; -- cgit v1.1