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

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

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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/string16.h" 18 #include "base/string16.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "base/threading/sequenced_worker_pool.h" 20 #include "base/threading/sequenced_worker_pool.h"
21 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
22 #include "chrome/browser/api/infobars/infobar_tab_helper.h"
22 #include "chrome/browser/autofill/autocomplete_history_manager.h" 23 #include "chrome/browser/autofill/autocomplete_history_manager.h"
23 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" 24 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
24 #include "chrome/browser/autofill/autofill_external_delegate.h" 25 #include "chrome/browser/autofill/autofill_external_delegate.h"
25 #include "chrome/browser/autofill/autofill_feedback_infobar_delegate.h" 26 #include "chrome/browser/autofill/autofill_feedback_infobar_delegate.h"
26 #include "chrome/browser/autofill/autofill_field.h" 27 #include "chrome/browser/autofill/autofill_field.h"
27 #include "chrome/browser/autofill/autofill_metrics.h" 28 #include "chrome/browser/autofill/autofill_metrics.h"
28 #include "chrome/browser/autofill/autofill_profile.h" 29 #include "chrome/browser/autofill/autofill_profile.h"
29 #include "chrome/browser/autofill/autofill_type.h" 30 #include "chrome/browser/autofill/autofill_type.h"
30 #include "chrome/browser/autofill/credit_card.h" 31 #include "chrome/browser/autofill/credit_card.h"
31 #include "chrome/browser/autofill/form_structure.h" 32 #include "chrome/browser/autofill/form_structure.h"
32 #include "chrome/browser/autofill/password_generator.h" 33 #include "chrome/browser/autofill/password_generator.h"
33 #include "chrome/browser/autofill/personal_data_manager.h" 34 #include "chrome/browser/autofill/personal_data_manager.h"
34 #include "chrome/browser/autofill/personal_data_manager_factory.h" 35 #include "chrome/browser/autofill/personal_data_manager_factory.h"
35 #include "chrome/browser/autofill/phone_number.h" 36 #include "chrome/browser/autofill/phone_number.h"
36 #include "chrome/browser/autofill/phone_number_i18n.h" 37 #include "chrome/browser/autofill/phone_number_i18n.h"
37 #include "chrome/browser/autofill/select_control_handler.h" 38 #include "chrome/browser/autofill/select_control_handler.h"
38 #include "chrome/browser/infobars/infobar_tab_helper.h"
39 #include "chrome/browser/password_manager/password_manager.h" 39 #include "chrome/browser/password_manager/password_manager.h"
40 #include "chrome/browser/prefs/pref_service.h" 40 #include "chrome/browser/prefs/pref_service.h"
41 #include "chrome/browser/profiles/profile.h" 41 #include "chrome/browser/profiles/profile.h"
42 #include "chrome/browser/sync/profile_sync_service.h" 42 #include "chrome/browser/sync/profile_sync_service.h"
43 #include "chrome/browser/sync/profile_sync_service_factory.h" 43 #include "chrome/browser/sync/profile_sync_service_factory.h"
44 #include "chrome/browser/ui/browser.h" 44 #include "chrome/browser/ui/browser.h"
45 #include "chrome/browser/ui/browser_finder.h" 45 #include "chrome/browser/ui/browser_finder.h"
46 #include "chrome/browser/ui/browser_window.h" 46 #include "chrome/browser/ui/browser_window.h"
47 #include "chrome/browser/ui/chrome_pages.h" 47 #include "chrome/browser/ui/chrome_pages.h"
48 #include "chrome/browser/ui/tab_contents/tab_contents.h" 48 #include "chrome/browser/ui/tab_contents/tab_contents.h"
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 *profile_guid = IDToGUID(profile_id); 1411 *profile_guid = IDToGUID(profile_id);
1412 } 1412 }
1413 1413
1414 void AutofillManager::UpdateInitialInteractionTimestamp( 1414 void AutofillManager::UpdateInitialInteractionTimestamp(
1415 const TimeTicks& interaction_timestamp) { 1415 const TimeTicks& interaction_timestamp) {
1416 if (initial_interaction_timestamp_.is_null() || 1416 if (initial_interaction_timestamp_.is_null() ||
1417 interaction_timestamp < initial_interaction_timestamp_) { 1417 interaction_timestamp < initial_interaction_timestamp_) {
1418 initial_interaction_timestamp_ = interaction_timestamp; 1418 initial_interaction_timestamp_ = interaction_timestamp;
1419 } 1419 }
1420 } 1420 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698