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 <string> | 8 #include <string> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" | 14 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" |
15 #include "chrome/browser/autofill/autofill_dialog.h" | 15 #include "chrome/browser/autofill/autofill_dialog.h" |
16 #include "chrome/browser/autofill/form_structure.h" | 16 #include "chrome/browser/autofill/form_structure.h" |
17 #include "chrome/browser/autofill/phone_number.h" | 17 #include "chrome/browser/autofill/phone_number.h" |
18 #include "chrome/browser/autofill/select_control_handler.h" | 18 #include "chrome/browser/autofill/select_control_handler.h" |
19 #include "chrome/browser/guid.h" | |
20 #include "chrome/browser/prefs/pref_service.h" | 19 #include "chrome/browser/prefs/pref_service.h" |
21 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/browser/renderer_host/render_view_host.h" | 21 #include "chrome/browser/renderer_host/render_view_host.h" |
23 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
24 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 24 #include "chrome/common/guid.h" |
25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
26 #include "chrome/common/url_constants.h" | 26 #include "chrome/common/url_constants.h" |
27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
28 #include "webkit/glue/form_data.h" | 28 #include "webkit/glue/form_data.h" |
29 #include "webkit/glue/form_field.h" | 29 #include "webkit/glue/form_field.h" |
30 | 30 |
31 using webkit_glue::FormData; | 31 using webkit_glue::FormData; |
32 using webkit_glue::FormField; | 32 using webkit_glue::FormField; |
33 | 33 |
34 namespace { | 34 namespace { |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 return std::string(); | 768 return std::string(); |
769 | 769 |
770 std::map<int, std::string>::const_iterator iter = id_guid_map_.find(id); | 770 std::map<int, std::string>::const_iterator iter = id_guid_map_.find(id); |
771 if (iter == id_guid_map_.end()) { | 771 if (iter == id_guid_map_.end()) { |
772 NOTREACHED(); | 772 NOTREACHED(); |
773 return std::string(); | 773 return std::string(); |
774 } | 774 } |
775 | 775 |
776 return iter->second; | 776 return iter->second; |
777 } | 777 } |
OLD | NEW |