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

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

Issue 11193052: Add flags for new Autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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"
60 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h" 60 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h"
61 #include "ui/base/l10n/l10n_util.h" 61 #include "ui/base/l10n/l10n_util.h"
62 #include "ui/gfx/rect.h" 62 #include "ui/gfx/rect.h"
63 63
64 using base::TimeTicks; 64 using base::TimeTicks;
65 using content::BrowserThread; 65 using content::BrowserThread;
66 using content::RenderViewHost; 66 using content::RenderViewHost;
67 using switches::kEnableAutofillFeedback;
68 67
69 namespace { 68 namespace {
70 69
71 const char* kAutofillManagerWebContentsUserDataKey = "web_contents_autofill"; 70 const char* kAutofillManagerWebContentsUserDataKey = "web_contents_autofill";
72 71
73 // We only send a fraction of the forms to upload server. 72 // We only send a fraction of the forms to upload server.
74 // The rate for positive/negative matches potentially could be different. 73 // The rate for positive/negative matches potentially could be different.
75 const double kAutofillPositiveUploadRateDefaultValue = 0.20; 74 const double kAutofillPositiveUploadRateDefaultValue = 0.20;
76 const double kAutofillNegativeUploadRateDefaultValue = 0.20; 75 const double kAutofillNegativeUploadRateDefaultValue = 0.20;
77 76
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 *profile_guid = IDToGUID(profile_id); 1399 *profile_guid = IDToGUID(profile_id);
1401 } 1400 }
1402 1401
1403 void AutofillManager::UpdateInitialInteractionTimestamp( 1402 void AutofillManager::UpdateInitialInteractionTimestamp(
1404 const TimeTicks& interaction_timestamp) { 1403 const TimeTicks& interaction_timestamp) {
1405 if (initial_interaction_timestamp_.is_null() || 1404 if (initial_interaction_timestamp_.is_null() ||
1406 interaction_timestamp < initial_interaction_timestamp_) { 1405 interaction_timestamp < initial_interaction_timestamp_) {
1407 initial_interaction_timestamp_ = interaction_timestamp; 1406 initial_interaction_timestamp_ = interaction_timestamp;
1408 } 1407 }
1409 } 1408 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698