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

Unified Diff: chrome/browser/ui/autofill/test_autofill_credit_card_bubble.cc

Issue 21668003: Implement newly saved card bubble for realz and update generated card bubble to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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/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

Powered by Google App Engine
This is Rietveld 408576698