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); |
}; |