Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1392)

Side by Side Diff: chrome/browser/autofill/autofill_manager.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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>
11 #include <set> 11 #include <set>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/guid.h" 16 #include "base/guid.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/prefs/pref_service.h"
18 #include "base/prefs/public/pref_service_base.h" 19 #include "base/prefs/public/pref_service_base.h"
19 #include "base/string16.h" 20 #include "base/string16.h"
20 #include "base/string_util.h" 21 #include "base/string_util.h"
21 #include "base/supports_user_data.h" 22 #include "base/supports_user_data.h"
22 #include "base/threading/sequenced_worker_pool.h" 23 #include "base/threading/sequenced_worker_pool.h"
23 #include "base/utf_string_conversions.h" 24 #include "base/utf_string_conversions.h"
24 #include "chrome/browser/api/infobars/infobar_service.h" 25 #include "chrome/browser/api/infobars/infobar_service.h"
25 #include "chrome/browser/api/sync/profile_sync_service_base.h" 26 #include "chrome/browser/api/sync/profile_sync_service_base.h"
26 #include "chrome/browser/autofill/autocheckout_infobar_delegate.h" 27 #include "chrome/browser/autofill/autocheckout_infobar_delegate.h"
27 #include "chrome/browser/autofill/autocheckout_manager.h" 28 #include "chrome/browser/autofill/autocheckout_manager.h"
28 #include "chrome/browser/autofill/autocomplete_history_manager.h" 29 #include "chrome/browser/autofill/autocomplete_history_manager.h"
29 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" 30 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
30 #include "chrome/browser/autofill/autofill_country.h" 31 #include "chrome/browser/autofill/autofill_country.h"
31 #include "chrome/browser/autofill/autofill_external_delegate.h" 32 #include "chrome/browser/autofill/autofill_external_delegate.h"
32 #include "chrome/browser/autofill/autofill_field.h" 33 #include "chrome/browser/autofill/autofill_field.h"
33 #include "chrome/browser/autofill/autofill_manager_delegate.h" 34 #include "chrome/browser/autofill/autofill_manager_delegate.h"
34 #include "chrome/browser/autofill/autofill_metrics.h" 35 #include "chrome/browser/autofill/autofill_metrics.h"
35 #include "chrome/browser/autofill/autofill_profile.h" 36 #include "chrome/browser/autofill/autofill_profile.h"
36 #include "chrome/browser/autofill/autofill_type.h" 37 #include "chrome/browser/autofill/autofill_type.h"
37 #include "chrome/browser/autofill/credit_card.h" 38 #include "chrome/browser/autofill/credit_card.h"
38 #include "chrome/browser/autofill/form_structure.h" 39 #include "chrome/browser/autofill/form_structure.h"
39 #include "chrome/browser/autofill/password_generator.h" 40 #include "chrome/browser/autofill/password_generator.h"
40 #include "chrome/browser/autofill/personal_data_manager.h" 41 #include "chrome/browser/autofill/personal_data_manager.h"
41 #include "chrome/browser/autofill/personal_data_manager_factory.h" 42 #include "chrome/browser/autofill/personal_data_manager_factory.h"
42 #include "chrome/browser/autofill/phone_number.h" 43 #include "chrome/browser/autofill/phone_number.h"
43 #include "chrome/browser/autofill/phone_number_i18n.h" 44 #include "chrome/browser/autofill/phone_number_i18n.h"
44 #include "chrome/browser/prefs/pref_registry_syncable.h" 45 #include "chrome/browser/prefs/pref_registry_syncable.h"
45 #include "chrome/browser/prefs/pref_service.h"
46 #include "chrome/common/autofill_messages.h" 46 #include "chrome/common/autofill_messages.h"
47 #include "chrome/common/chrome_notification_types.h" 47 #include "chrome/common/chrome_notification_types.h"
48 #include "chrome/common/chrome_switches.h" 48 #include "chrome/common/chrome_switches.h"
49 #include "chrome/common/form_data.h" 49 #include "chrome/common/form_data.h"
50 #include "chrome/common/form_data_predictions.h" 50 #include "chrome/common/form_data_predictions.h"
51 #include "chrome/common/form_field_data.h" 51 #include "chrome/common/form_field_data.h"
52 #include "chrome/common/password_form_fill_data.h" 52 #include "chrome/common/password_form_fill_data.h"
53 #include "chrome/common/pref_names.h" 53 #include "chrome/common/pref_names.h"
54 #include "chrome/common/url_constants.h" 54 #include "chrome/common/url_constants.h"
55 #include "content/public/browser/browser_context.h" 55 #include "content/public/browser/browser_context.h"
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 *profile_guid = IDToGUID(profile_id); 1305 *profile_guid = IDToGUID(profile_id);
1306 } 1306 }
1307 1307
1308 void AutofillManager::UpdateInitialInteractionTimestamp( 1308 void AutofillManager::UpdateInitialInteractionTimestamp(
1309 const TimeTicks& interaction_timestamp) { 1309 const TimeTicks& interaction_timestamp) {
1310 if (initial_interaction_timestamp_.is_null() || 1310 if (initial_interaction_timestamp_.is_null() ||
1311 interaction_timestamp < initial_interaction_timestamp_) { 1311 interaction_timestamp < initial_interaction_timestamp_) {
1312 initial_interaction_timestamp_ = interaction_timestamp; 1312 initial_interaction_timestamp_ = interaction_timestamp;
1313 } 1313 }
1314 } 1314 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/zero_suggest_provider.cc ('k') | chrome/browser/autofill/risk/fingerprint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698