Chromium Code Reviews| Index: chrome/browser/autofill/autofill_manager.cc |
| =================================================================== |
| --- chrome/browser/autofill/autofill_manager.cc (revision 56214) |
| +++ chrome/browser/autofill/autofill_manager.cc (working copy) |
| @@ -99,7 +99,8 @@ |
| AutoFillManager::AutoFillManager(TabContents* tab_contents) |
| : tab_contents_(tab_contents), |
| personal_data_(NULL), |
| - download_manager_(tab_contents_->profile()) { |
| + download_manager_(tab_contents_->profile()), |
| + disable_download_manager_requests_(false) { |
| DCHECK(tab_contents); |
| // |personal_data_| is NULL when using TestTabContents. |
| @@ -451,8 +452,9 @@ |
| void AutoFillManager::UploadFormData() { |
| // TODO(georgey): enable upload request when we make sure that our data is in |
| // line with toolbar data: |
| - // download_manager_.StartUploadRequest(upload_form_structure_, |
| - // form_is_autofilled); |
| + // if (!disable_download_manager_requests_) |
|
dhollowa
2010/08/17 20:44:02
Please log an M7 bug on this and add bug reference
GeorgeY
2010/08/17 21:18:46
Done: #52501
|
| + // download_manager_.StartUploadRequest(upload_form_structure_, |
| + // form_is_autofilled); |
| } |
| void AutoFillManager::OnInfoBarClosed(bool should_save) { |
| @@ -464,14 +466,16 @@ |
| AutoFillManager::AutoFillManager() |
| : tab_contents_(NULL), |
| personal_data_(NULL), |
| - download_manager_(NULL) { |
| + download_manager_(NULL), |
| + disable_download_manager_requests_(false) { |
| } |
| AutoFillManager::AutoFillManager(TabContents* tab_contents, |
| PersonalDataManager* personal_data) |
| : tab_contents_(tab_contents), |
| personal_data_(personal_data), |
| - download_manager_(NULL) { |
| + download_manager_(NULL), |
| + disable_download_manager_requests_(false) { |
| DCHECK(tab_contents); |
| } |
| @@ -772,7 +776,7 @@ |
| } |
| // If none of the forms were parsed, no use querying the server. |
| - if (!form_structures_.empty()) |
| + if (!form_structures_.empty() && !disable_download_manager_requests_) |
| download_manager_.StartQueryRequest(form_structures_); |
| } |