OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/autofill/core/browser/autofill_manager.h" | 5 #include "components/autofill/core/browser/autofill_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 #include <map> | 10 #include <map> |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 new AutocompleteHistoryManager(driver, delegate)), | 176 new AutocompleteHistoryManager(driver, delegate)), |
177 metric_logger_(new AutofillMetrics), | 177 metric_logger_(new AutofillMetrics), |
178 has_logged_autofill_enabled_(false), | 178 has_logged_autofill_enabled_(false), |
179 has_logged_address_suggestions_count_(false), | 179 has_logged_address_suggestions_count_(false), |
180 did_show_suggestions_(false), | 180 did_show_suggestions_(false), |
181 user_did_type_(false), | 181 user_did_type_(false), |
182 user_did_autofill_(false), | 182 user_did_autofill_(false), |
183 user_did_edit_autofilled_field_(false), | 183 user_did_edit_autofilled_field_(false), |
184 external_delegate_(NULL), | 184 external_delegate_(NULL), |
185 test_delegate_(NULL), | 185 test_delegate_(NULL), |
186 weak_ptr_factory_(this) { | 186 weak_ptr_factory_(this), |
187 username_to_remove_() { | |
vabr (Chromium)
2014/04/09 14:06:30
This should not be needed, please remove.
rchtara
2014/04/09 15:28:20
Done.
| |
187 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { | 188 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { |
188 download_manager_.reset( | 189 download_manager_.reset( |
189 new AutofillDownloadManager(driver, | 190 new AutofillDownloadManager(driver, |
190 manager_delegate_->GetPrefs(), | 191 manager_delegate_->GetPrefs(), |
191 this)); | 192 this)); |
192 } | 193 } |
193 } | 194 } |
194 | 195 |
195 AutofillManager::~AutofillManager() {} | 196 AutofillManager::~AutofillManager() {} |
196 | 197 |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1166 if (driver_->IsOffTheRecord()) | 1167 if (driver_->IsOffTheRecord()) |
1167 return false; | 1168 return false; |
1168 | 1169 |
1169 // Disregard forms that we wouldn't ever autofill in the first place. | 1170 // Disregard forms that we wouldn't ever autofill in the first place. |
1170 if (!form.ShouldBeParsed(true)) | 1171 if (!form.ShouldBeParsed(true)) |
1171 return false; | 1172 return false; |
1172 | 1173 |
1173 return true; | 1174 return true; |
1174 } | 1175 } |
1175 | 1176 |
1177 base::string16 AutofillManager::GetUserNameToRemove() { | |
vabr (Chromium)
2014/04/09 14:06:30
nit: you can name these two accessors
username_to_
rchtara
2014/04/09 15:28:20
Done.
| |
1178 return username_to_remove_; | |
1179 } | |
1180 | |
1181 void AutofillManager::SetUserNameToRemove( | |
1182 const base::string16& username_to_remove) { | |
1183 username_to_remove_ = username_to_remove; | |
1184 } | |
1185 | |
1176 } // namespace autofill | 1186 } // namespace autofill |
OLD | NEW |