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

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

Issue 2413533003: [Payments] Normalize billing address before sending to the merchant. (Closed)
Patch Set: Rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/android/personal_data_manager_android.h
diff --git a/chrome/browser/autofill/android/personal_data_manager_android.h b/chrome/browser/autofill/android/personal_data_manager_android.h
index 66e7b8c2d603ffa7793ccc6f33726bc34790ff9e..bd76e545590c35bfa99e692e4cb004b0e8b26922 100644
--- a/chrome/browser/autofill/android/personal_data_manager_android.h
+++ b/chrome/browser/autofill/android/personal_data_manager_android.h
@@ -28,6 +28,7 @@ class PersonalDataManagerAndroid
class Delegate {
public:
virtual void OnRulesSuccessfullyLoaded() = 0;
+ virtual ~Delegate() {}
};
PersonalDataManagerAndroid(JNIEnv* env, jobject obj);
@@ -298,7 +299,7 @@ class PersonalDataManagerAndroid
JNIEnv* env);
// Cancels the pending address normalization task.
- void CancelPendingAddressNormalization(
+ void CancelPendingAddressNormalizations(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& unused_obj);
@@ -340,8 +341,9 @@ class PersonalDataManagerAndroid
// The address validator used to normalize addresses.
AddressValidator address_validator_;
- // Map associating a region code to a pending normalization.
- std::map<std::string, Delegate*> pending_normalization_;
+ // Map associating a region code to pending normalizations.
+ std::map<std::string, std::vector<std::unique_ptr<Delegate>>>
+ pending_normalization_;
DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698