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" | 19 #include "chrome/browser/guid.h" |
20 #include "chrome/browser/prefs/pref_service.h" | 20 #include "chrome/browser/prefs/pref_service.h" |
21 #include "chrome/browser/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/browser/renderer_host/render_view_host.h" | 22 #include "chrome/browser/renderer_host/render_view_host.h" |
23 #include "chrome/browser/tab_contents/tab_contents.h" | 23 #include "chrome/browser/tab_contents/tab_contents.h" |
24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.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; |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 return std::string(); | 770 return std::string(); |
771 | 771 |
772 std::map<int, std::string>::const_iterator iter = id_guid_map_.find(id); | 772 std::map<int, std::string>::const_iterator iter = id_guid_map_.find(id); |
773 if (iter == id_guid_map_.end()) { | 773 if (iter == id_guid_map_.end()) { |
774 NOTREACHED(); | 774 NOTREACHED(); |
775 return std::string(); | 775 return std::string(); |
776 } | 776 } |
777 | 777 |
778 return iter->second; | 778 return iter->second; |
779 } | 779 } |
OLD | NEW |