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

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

Issue 10540003: Move guid generation from chrome/common/ to base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/logging.h" 17 #include "base/logging.h"
17 #include "base/string16.h" 18 #include "base/string16.h"
18 #include "base/string_util.h" 19 #include "base/string_util.h"
19 #include "base/threading/sequenced_worker_pool.h" 20 #include "base/threading/sequenced_worker_pool.h"
20 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
21 #include "chrome/browser/autocomplete_history_manager.h" 22 #include "chrome/browser/autocomplete_history_manager.h"
22 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" 23 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
23 #include "chrome/browser/autofill/autofill_external_delegate.h" 24 #include "chrome/browser/autofill/autofill_external_delegate.h"
24 #include "chrome/browser/autofill/autofill_feedback_infobar_delegate.h" 25 #include "chrome/browser/autofill/autofill_feedback_infobar_delegate.h"
25 #include "chrome/browser/autofill/autofill_field.h" 26 #include "chrome/browser/autofill/autofill_field.h"
(...skipping 13 matching lines...) Expand all
39 #include "chrome/browser/profiles/profile.h" 40 #include "chrome/browser/profiles/profile.h"
40 #include "chrome/browser/sync/profile_sync_service_factory.h" 41 #include "chrome/browser/sync/profile_sync_service_factory.h"
41 #include "chrome/browser/sync/profile_sync_service.h" 42 #include "chrome/browser/sync/profile_sync_service.h"
42 #include "chrome/browser/ui/browser.h" 43 #include "chrome/browser/ui/browser.h"
43 #include "chrome/browser/ui/browser_finder.h" 44 #include "chrome/browser/ui/browser_finder.h"
44 #include "chrome/browser/ui/browser_window.h" 45 #include "chrome/browser/ui/browser_window.h"
45 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 46 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
46 #include "chrome/common/autofill_messages.h" 47 #include "chrome/common/autofill_messages.h"
47 #include "chrome/common/chrome_notification_types.h" 48 #include "chrome/common/chrome_notification_types.h"
48 #include "chrome/common/chrome_switches.h" 49 #include "chrome/common/chrome_switches.h"
49 #include "chrome/common/guid.h"
50 #include "chrome/common/pref_names.h" 50 #include "chrome/common/pref_names.h"
51 #include "chrome/common/url_constants.h" 51 #include "chrome/common/url_constants.h"
52 #include "content/public/browser/browser_thread.h" 52 #include "content/public/browser/browser_thread.h"
53 #include "content/public/browser/notification_service.h" 53 #include "content/public/browser/notification_service.h"
54 #include "content/public/browser/notification_source.h" 54 #include "content/public/browser/notification_source.h"
55 #include "content/public/browser/render_view_host.h" 55 #include "content/public/browser/render_view_host.h"
56 #include "content/public/browser/web_contents.h" 56 #include "content/public/browser/web_contents.h"
57 #include "googleurl/src/gurl.h" 57 #include "googleurl/src/gurl.h"
58 #include "grit/generated_resources.h" 58 #include "grit/generated_resources.h"
59 #include "ipc/ipc_message_macros.h" 59 #include "ipc/ipc_message_macros.h"
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 *profile_guid = IDToGUID(profile_id); 1384 *profile_guid = IDToGUID(profile_id);
1385 } 1385 }
1386 1386
1387 void AutofillManager::UpdateInitialInteractionTimestamp( 1387 void AutofillManager::UpdateInitialInteractionTimestamp(
1388 const TimeTicks& interaction_timestamp) { 1388 const TimeTicks& interaction_timestamp) {
1389 if (initial_interaction_timestamp_.is_null() || 1389 if (initial_interaction_timestamp_.is_null() ||
1390 interaction_timestamp < initial_interaction_timestamp_) { 1390 interaction_timestamp < initial_interaction_timestamp_) {
1391 initial_interaction_timestamp_ = interaction_timestamp; 1391 initial_interaction_timestamp_ = interaction_timestamp;
1392 } 1392 }
1393 } 1393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698