| 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/personal_data_manager.h" | 5 #include "components/autofill/core/browser/personal_data_manager.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #import <AddressBook/AddressBook.h> | 9 #import <AddressBook/AddressBook.h> |
| 10 | 10 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 case NAME: | 388 case NAME: |
| 389 case NAME_BILLING: | 389 case NAME_BILLING: |
| 390 case PHONE_BILLING: | 390 case PHONE_BILLING: |
| 391 case PHONE_HOME: | 391 case PHONE_HOME: |
| 392 return true; | 392 return true; |
| 393 case NO_GROUP: | 393 case NO_GROUP: |
| 394 case COMPANY: | 394 case COMPANY: |
| 395 case CREDIT_CARD: | 395 case CREDIT_CARD: |
| 396 case PASSWORD_FIELD: | 396 case PASSWORD_FIELD: |
| 397 case TRANSACTION: | 397 case TRANSACTION: |
| 398 case USERNAME_FIELD: |
| 398 return false; | 399 return false; |
| 399 } | 400 } |
| 400 | 401 |
| 401 return false; | 402 return false; |
| 402 } | 403 } |
| 403 | 404 |
| 404 void PersonalDataManager::ShowedAccessAddressBookPrompt() { | 405 void PersonalDataManager::ShowedAccessAddressBookPrompt() { |
| 405 pref_service_->SetInteger(prefs::kAutofillMacAddressBookShowedCount, | 406 pref_service_->SetInteger(prefs::kAutofillMacAddressBookShowedCount, |
| 406 AccessAddressBookPromptCount() + 1); | 407 AccessAddressBookPromptCount() + 1); |
| 407 } | 408 } |
| 408 | 409 |
| 409 int PersonalDataManager::AccessAddressBookPromptCount() { | 410 int PersonalDataManager::AccessAddressBookPromptCount() { |
| 410 return pref_service_->GetInteger(prefs::kAutofillMacAddressBookShowedCount); | 411 return pref_service_->GetInteger(prefs::kAutofillMacAddressBookShowedCount); |
| 411 } | 412 } |
| 412 | 413 |
| 413 void PersonalDataManager::BinaryChanging() { | 414 void PersonalDataManager::BinaryChanging() { |
| 414 g_binary_changed = true; | 415 g_binary_changed = true; |
| 415 } | 416 } |
| 416 | 417 |
| 417 } // namespace autofill | 418 } // namespace autofill |
| OLD | NEW |