| 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 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 user_did_autofill_(false), | 208 user_did_autofill_(false), |
| 209 user_did_edit_autofilled_field_(false), | 209 user_did_edit_autofilled_field_(false), |
| 210 user_did_accept_upload_prompt_(false), | 210 user_did_accept_upload_prompt_(false), |
| 211 external_delegate_(NULL), | 211 external_delegate_(NULL), |
| 212 test_delegate_(NULL), | 212 test_delegate_(NULL), |
| 213 weak_ptr_factory_(this) { | 213 weak_ptr_factory_(this) { |
| 214 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { | 214 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { |
| 215 download_manager_.reset(new AutofillDownloadManager(driver, this)); | 215 download_manager_.reset(new AutofillDownloadManager(driver, this)); |
| 216 } | 216 } |
| 217 CountryNames::SetLocaleString(app_locale_); | 217 CountryNames::SetLocaleString(app_locale_); |
| 218 if (personal_data_ && client_) |
| 219 personal_data_->OnSyncServiceInitialized(client_->GetSyncService()); |
| 218 } | 220 } |
| 219 | 221 |
| 220 AutofillManager::~AutofillManager() {} | 222 AutofillManager::~AutofillManager() {} |
| 221 | 223 |
| 222 // static | 224 // static |
| 223 void AutofillManager::RegisterProfilePrefs( | 225 void AutofillManager::RegisterProfilePrefs( |
| 224 user_prefs::PrefRegistrySyncable* registry) { | 226 user_prefs::PrefRegistrySyncable* registry) { |
| 225 registry->RegisterBooleanPref( | 227 registry->RegisterBooleanPref( |
| 226 prefs::kAutofillEnabled, | 228 prefs::kAutofillEnabled, |
| 227 true, | 229 true, |
| (...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2016 if (i > 0) | 2018 if (i > 0) |
| 2017 fputs("Next oldest form:\n", file); | 2019 fputs("Next oldest form:\n", file); |
| 2018 } | 2020 } |
| 2019 fputs("\n", file); | 2021 fputs("\n", file); |
| 2020 | 2022 |
| 2021 fclose(file); | 2023 fclose(file); |
| 2022 } | 2024 } |
| 2023 #endif // ENABLE_FORM_DEBUG_DUMP | 2025 #endif // ENABLE_FORM_DEBUG_DUMP |
| 2024 | 2026 |
| 2025 } // namespace autofill | 2027 } // namespace autofill |
| OLD | NEW |