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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 user_prefs::PrefRegistrySyncable* registry) { | 199 user_prefs::PrefRegistrySyncable* registry) { |
200 registry->RegisterBooleanPref( | 200 registry->RegisterBooleanPref( |
201 prefs::kAutofillEnabled, | 201 prefs::kAutofillEnabled, |
202 true, | 202 true, |
203 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 203 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
204 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 204 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
205 registry->RegisterBooleanPref( | 205 registry->RegisterBooleanPref( |
206 prefs::kAutofillAuxiliaryProfilesEnabled, | 206 prefs::kAutofillAuxiliaryProfilesEnabled, |
207 true, | 207 true, |
208 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 208 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
209 #else | 209 #else // defined(OS_MACOSX) || defined(OS_ANDROID) |
210 registry->RegisterBooleanPref( | 210 registry->RegisterBooleanPref( |
211 prefs::kAutofillAuxiliaryProfilesEnabled, | 211 prefs::kAutofillAuxiliaryProfilesEnabled, |
212 false, | 212 false, |
213 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 213 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
214 #endif | 214 #endif // defined(OS_MACOSX) || defined(OS_ANDROID) |
| 215 #if defined(OS_MACOSX) |
| 216 registry->RegisterBooleanPref( |
| 217 prefs::kAutofillAuxiliaryProfilesQueried, |
| 218 false, |
| 219 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 220 #endif // defined(OS_MACOSX) |
215 registry->RegisterDoublePref( | 221 registry->RegisterDoublePref( |
216 prefs::kAutofillPositiveUploadRate, | 222 prefs::kAutofillPositiveUploadRate, |
217 kAutofillPositiveUploadRateDefaultValue, | 223 kAutofillPositiveUploadRateDefaultValue, |
218 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 224 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
219 registry->RegisterDoublePref( | 225 registry->RegisterDoublePref( |
220 prefs::kAutofillNegativeUploadRate, | 226 prefs::kAutofillNegativeUploadRate, |
221 kAutofillNegativeUploadRateDefaultValue, | 227 kAutofillNegativeUploadRateDefaultValue, |
222 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 228 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
223 } | 229 } |
224 | 230 |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 return false; | 1165 return false; |
1160 | 1166 |
1161 // Disregard forms that we wouldn't ever autofill in the first place. | 1167 // Disregard forms that we wouldn't ever autofill in the first place. |
1162 if (!form.ShouldBeParsed(true)) | 1168 if (!form.ShouldBeParsed(true)) |
1163 return false; | 1169 return false; |
1164 | 1170 |
1165 return true; | 1171 return true; |
1166 } | 1172 } |
1167 | 1173 |
1168 } // namespace autofill | 1174 } // namespace autofill |
OLD | NEW |