| Index: chrome/browser/ui/autofill/test_autofill_credit_card_bubble.cc
|
| diff --git a/chrome/browser/ui/autofill/test_autofill_credit_card_bubble.cc b/chrome/browser/ui/autofill/test_autofill_credit_card_bubble.cc
|
| index 237b9699dc5cbae24c383463487bc3323b239add..e0675664b8922b49752ea906c02783cfc84439fc 100644
|
| --- a/chrome/browser/ui/autofill/test_autofill_credit_card_bubble.cc
|
| +++ b/chrome/browser/ui/autofill/test_autofill_credit_card_bubble.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "chrome/browser/ui/autofill/test_autofill_credit_card_bubble.h"
|
|
|
| +#include "chrome/browser/ui/autofill/autofill_credit_card_bubble_controller.h"
|
| +
|
| namespace autofill {
|
|
|
| // static
|
| @@ -13,7 +15,10 @@ base::WeakPtr<TestAutofillCreditCardBubble>
|
| return (new TestAutofillCreditCardBubble(controller))->GetWeakPtr();
|
| }
|
|
|
| -TestAutofillCreditCardBubble::~TestAutofillCreditCardBubble() {}
|
| +TestAutofillCreditCardBubble::~TestAutofillCreditCardBubble() {
|
| + if (controller_)
|
| + controller_->OnBubbleDestroyed();
|
| +}
|
|
|
| void TestAutofillCreditCardBubble::Show() {
|
| showing_ = true;
|
| @@ -34,7 +39,8 @@ base::WeakPtr<TestAutofillCreditCardBubble>
|
|
|
| TestAutofillCreditCardBubble::TestAutofillCreditCardBubble(
|
| const base::WeakPtr<AutofillCreditCardBubbleController>& controller)
|
| - : showing_(false),
|
| + : controller_(controller),
|
| + showing_(false),
|
| weak_ptr_factory_(this) {}
|
|
|
| } // namespace autofill
|
|
|