| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 autofill_assistant_(this), | 239 autofill_assistant_(this), |
| 240 #endif | 240 #endif |
| 241 weak_ptr_factory_(this) { | 241 weak_ptr_factory_(this) { |
| 242 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { | 242 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { |
| 243 download_manager_.reset(new AutofillDownloadManager(driver, this)); | 243 download_manager_.reset(new AutofillDownloadManager(driver, this)); |
| 244 } | 244 } |
| 245 CountryNames::SetLocaleString(app_locale_); | 245 CountryNames::SetLocaleString(app_locale_); |
| 246 if (personal_data_ && client_) | 246 if (personal_data_ && client_) |
| 247 personal_data_->OnSyncServiceInitialized(client_->GetSyncService()); | 247 personal_data_->OnSyncServiceInitialized(client_->GetSyncService()); |
| 248 | 248 |
| 249 #if defined(OS_ANDROID) | |
| 250 if (personal_data_ && driver_) | 249 if (personal_data_ && driver_) |
| 251 personal_data_->SetURLRequestContextGetter(driver_->GetURLRequestContext()); | 250 personal_data_->SetURLRequestContextGetter(driver_->GetURLRequestContext()); |
| 252 #endif | |
| 253 } | 251 } |
| 254 | 252 |
| 255 AutofillManager::~AutofillManager() {} | 253 AutofillManager::~AutofillManager() {} |
| 256 | 254 |
| 257 // static | 255 // static |
| 258 void AutofillManager::RegisterProfilePrefs( | 256 void AutofillManager::RegisterProfilePrefs( |
| 259 user_prefs::PrefRegistrySyncable* registry) { | 257 user_prefs::PrefRegistrySyncable* registry) { |
| 260 // This pref is not synced because it's for a signin promo, which by | 258 // This pref is not synced because it's for a signin promo, which by |
| 261 // definition will not be synced. | 259 // definition will not be synced. |
| 262 registry->RegisterIntegerPref( | 260 registry->RegisterIntegerPref( |
| (...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2199 } | 2197 } |
| 2200 #endif // ENABLE_FORM_DEBUG_DUMP | 2198 #endif // ENABLE_FORM_DEBUG_DUMP |
| 2201 | 2199 |
| 2202 void AutofillManager::LogCardUploadDecisionUkm( | 2200 void AutofillManager::LogCardUploadDecisionUkm( |
| 2203 AutofillMetrics::CardUploadDecisionMetric upload_decision) { | 2201 AutofillMetrics::CardUploadDecisionMetric upload_decision) { |
| 2204 AutofillMetrics::LogCardUploadDecisionUkm( | 2202 AutofillMetrics::LogCardUploadDecisionUkm( |
| 2205 client_->GetUkmService(), pending_upload_request_url_, upload_decision); | 2203 client_->GetUkmService(), pending_upload_request_url_, upload_decision); |
| 2206 } | 2204 } |
| 2207 | 2205 |
| 2208 } // namespace autofill | 2206 } // namespace autofill |
| OLD | NEW |