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

Unified Diff: components/autofill/core/browser/personal_data_manager.cc

Issue 1002283004: Don't record usage stats when autofilling in incognito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/personal_data_manager.cc
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index 5441a475b7da657346d9603ce00b82bb4c6251dc..617c9dc09190b9cd674e514ba91063669bb4b87a 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -504,7 +504,7 @@ bool PersonalDataManager::ImportFormData(
}
void PersonalDataManager::RecordUseOf(const AutofillDataModel& data_model) {
- if (!database_.get())
+ if (is_off_the_record_ || !database_.get())
return;
CreditCard* credit_card = GetCreditCardByGUID(data_model.guid());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698