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

Unified Diff: chrome/browser/autofill/android/personal_data_manager_android.cc

Issue 2120973002: [Payments] Show complete profiles first and limit to 4 suggestions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 5 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
Index: chrome/browser/autofill/android/personal_data_manager_android.cc
diff --git a/chrome/browser/autofill/android/personal_data_manager_android.cc b/chrome/browser/autofill/android/personal_data_manager_android.cc
index 03e9be0c33efe120a6e8ac66e4819050459f635c..f57c62d632f698c73a2e1704e2d8bcea9a487768 100644
--- a/chrome/browser/autofill/android/personal_data_manager_android.cc
+++ b/chrome/browser/autofill/android/personal_data_manager_android.cc
@@ -507,6 +507,8 @@ void PersonalDataManagerAndroid::SetProfileUseStatsForTesting(
profile->set_use_count(static_cast<size_t>(count));
profile->set_use_date(base::Time::FromTimeT(date));
+
+ personal_data_manager_->NotifyPersonalDataChangedForTests();
}
void PersonalDataManagerAndroid::SetCreditCardUseStatsForTesting(
@@ -524,6 +526,8 @@ void PersonalDataManagerAndroid::SetCreditCardUseStatsForTesting(
card->set_use_count(static_cast<size_t>(count));
card->set_use_date(base::Time::FromTimeT(date));
+
+ personal_data_manager_->NotifyPersonalDataChangedForTests();
}
ScopedJavaLocalRef<jobjectArray> PersonalDataManagerAndroid::GetProfileGUIDs(

Powered by Google App Engine
This is Rietveld 408576698