diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-19 00:07:24 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-19 00:07:24 +0000 |
commit | 0a01940e3b1f3ed559fa62b72ddf401443aeaade (patch) | |
tree | 845366d7b4d5b8f54fd2fb6c1f9aae58ac72caf9 /chrome | |
parent | f56367ccb42c6af4a609b34a6b0f86b230ef8542 (diff) | |
download | chromium_src-0a01940e3b1f3ed559fa62b72ddf401443aeaade.zip chromium_src-0a01940e3b1f3ed559fa62b72ddf401443aeaade.tar.gz chromium_src-0a01940e3b1f3ed559fa62b72ddf401443aeaade.tar.bz2 |
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
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/autofill/personal_data_manager.cc | 14 | ||||
-rw-r--r-- | chrome/browser/autofill/personal_data_manager.h | 8 |
2 files changed, 0 insertions, 22 deletions
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<FormStructure*>& 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<int>* 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<int>* 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_; |