| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/autofill/autofill_manager.h" | 5 #include "chrome/browser/autofill/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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 PrefService::UNSYNCABLE_PREF); | 279 PrefService::UNSYNCABLE_PREF); |
| 280 #endif | 280 #endif |
| 281 prefs->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, | 281 prefs->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, |
| 282 kAutofillPositiveUploadRateDefaultValue, | 282 kAutofillPositiveUploadRateDefaultValue, |
| 283 PrefService::UNSYNCABLE_PREF); | 283 PrefService::UNSYNCABLE_PREF); |
| 284 prefs->RegisterDoublePref(prefs::kAutofillNegativeUploadRate, | 284 prefs->RegisterDoublePref(prefs::kAutofillNegativeUploadRate, |
| 285 kAutofillNegativeUploadRateDefaultValue, | 285 kAutofillNegativeUploadRateDefaultValue, |
| 286 PrefService::UNSYNCABLE_PREF); | 286 PrefService::UNSYNCABLE_PREF); |
| 287 } | 287 } |
| 288 | 288 |
| 289 void AutofillManager::DidNavigateMainFramePostCommit( | 289 void AutofillManager::DidNavigateMainFrame( |
| 290 const content::LoadCommittedDetails& details, | 290 const content::LoadCommittedDetails& details, |
| 291 const ViewHostMsg_FrameNavigate_Params& params) { | 291 const ViewHostMsg_FrameNavigate_Params& params) { |
| 292 Reset(); | 292 Reset(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 bool AutofillManager::OnMessageReceived(const IPC::Message& message) { | 295 bool AutofillManager::OnMessageReceived(const IPC::Message& message) { |
| 296 bool handled = true; | 296 bool handled = true; |
| 297 IPC_BEGIN_MESSAGE_MAP(AutofillManager, message) | 297 IPC_BEGIN_MESSAGE_MAP(AutofillManager, message) |
| 298 IPC_MESSAGE_HANDLER(AutofillHostMsg_FormsSeen, OnFormsSeen) | 298 IPC_MESSAGE_HANDLER(AutofillHostMsg_FormsSeen, OnFormsSeen) |
| 299 IPC_MESSAGE_HANDLER(AutofillHostMsg_FormSubmitted, OnFormSubmitted) | 299 IPC_MESSAGE_HANDLER(AutofillHostMsg_FormSubmitted, OnFormSubmitted) |
| (...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 *profile_guid = IDToGUID(profile_id); | 1277 *profile_guid = IDToGUID(profile_id); |
| 1278 } | 1278 } |
| 1279 | 1279 |
| 1280 void AutofillManager::UpdateInitialInteractionTimestamp( | 1280 void AutofillManager::UpdateInitialInteractionTimestamp( |
| 1281 const TimeTicks& interaction_timestamp) { | 1281 const TimeTicks& interaction_timestamp) { |
| 1282 if (initial_interaction_timestamp_.is_null() || | 1282 if (initial_interaction_timestamp_.is_null() || |
| 1283 interaction_timestamp < initial_interaction_timestamp_) { | 1283 interaction_timestamp < initial_interaction_timestamp_) { |
| 1284 initial_interaction_timestamp_ = interaction_timestamp; | 1284 initial_interaction_timestamp_ = interaction_timestamp; |
| 1285 } | 1285 } |
| 1286 } | 1286 } |
| OLD | NEW |