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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 #if defined(OS_ANDROID) || defined(OS_IOS) | 213 #if defined(OS_ANDROID) || defined(OS_IOS) |
214 autofill_assistant_(this), | 214 autofill_assistant_(this), |
215 #endif | 215 #endif |
216 weak_ptr_factory_(this) { | 216 weak_ptr_factory_(this) { |
217 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { | 217 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { |
218 download_manager_.reset(new AutofillDownloadManager(driver, this)); | 218 download_manager_.reset(new AutofillDownloadManager(driver, this)); |
219 } | 219 } |
220 CountryNames::SetLocaleString(app_locale_); | 220 CountryNames::SetLocaleString(app_locale_); |
221 if (personal_data_ && client_) | 221 if (personal_data_ && client_) |
222 personal_data_->OnSyncServiceInitialized(client_->GetSyncService()); | 222 personal_data_->OnSyncServiceInitialized(client_->GetSyncService()); |
| 223 |
| 224 #if defined(OS_ANDROID) |
| 225 if (personal_data_ && driver_) |
| 226 personal_data_->SetURLRequestContextGetter(driver_->GetURLRequestContext()); |
| 227 #endif |
223 } | 228 } |
224 | 229 |
225 AutofillManager::~AutofillManager() {} | 230 AutofillManager::~AutofillManager() {} |
226 | 231 |
227 // static | 232 // static |
228 void AutofillManager::RegisterProfilePrefs( | 233 void AutofillManager::RegisterProfilePrefs( |
229 user_prefs::PrefRegistrySyncable* registry) { | 234 user_prefs::PrefRegistrySyncable* registry) { |
230 // This pref is not synced because it's for a signin promo, which by | 235 // This pref is not synced because it's for a signin promo, which by |
231 // definition will not be synced. | 236 // definition will not be synced. |
232 registry->RegisterIntegerPref( | 237 registry->RegisterIntegerPref( |
(...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2076 if (i > 0) | 2081 if (i > 0) |
2077 fputs("Next oldest form:\n", file); | 2082 fputs("Next oldest form:\n", file); |
2078 } | 2083 } |
2079 fputs("\n", file); | 2084 fputs("\n", file); |
2080 | 2085 |
2081 fclose(file); | 2086 fclose(file); |
2082 } | 2087 } |
2083 #endif // ENABLE_FORM_DEBUG_DUMP | 2088 #endif // ENABLE_FORM_DEBUG_DUMP |
2084 | 2089 |
2085 } // namespace autofill | 2090 } // namespace autofill |
OLD | NEW |