OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/autofill/autofill_manager.h" | 5 #include "chrome/browser/autofill/autofill_manager.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 // We found a matching field in the |form_structure| so we | 199 // We found a matching field in the |form_structure| so we |
200 // proceed to the next |form| field, and the next |form_structure|. | 200 // proceed to the next |form| field, and the next |form_structure|. |
201 ++i; | 201 ++i; |
202 } | 202 } |
203 | 203 |
204 return false; | 204 return false; |
205 } | 205 } |
206 | 206 |
207 bool FormIsHTTPS(FormStructure* form) { | 207 bool FormIsHTTPS(FormStructure* form) { |
208 return form->source_url().SchemeIs(chrome::kHttpsScheme); | 208 return form->source_url().SchemeIs(chrome::kHttpsScheme) || |
| 209 form->source_url().SchemeIs(chrome::kHttpsvScheme); |
209 } | 210 } |
210 | 211 |
211 } // namespace | 212 } // namespace |
212 | 213 |
213 AutoFillManager::AutoFillManager(TabContents* tab_contents) | 214 AutoFillManager::AutoFillManager(TabContents* tab_contents) |
214 : tab_contents_(tab_contents), | 215 : tab_contents_(tab_contents), |
215 personal_data_(NULL), | 216 personal_data_(NULL), |
216 download_manager_(tab_contents_->profile()), | 217 download_manager_(tab_contents_->profile()), |
217 disable_download_manager_requests_(false), | 218 disable_download_manager_requests_(false), |
218 metric_logger_(new AutoFillMetrics), | 219 metric_logger_(new AutoFillMetrics), |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 return std::string(); | 1018 return std::string(); |
1018 | 1019 |
1019 std::map<int, std::string>::const_iterator iter = id_guid_map_.find(id); | 1020 std::map<int, std::string>::const_iterator iter = id_guid_map_.find(id); |
1020 if (iter == id_guid_map_.end()) { | 1021 if (iter == id_guid_map_.end()) { |
1021 NOTREACHED(); | 1022 NOTREACHED(); |
1022 return std::string(); | 1023 return std::string(); |
1023 } | 1024 } |
1024 | 1025 |
1025 return iter->second; | 1026 return iter->second; |
1026 } | 1027 } |
OLD | NEW |