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

Unified Diff: chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.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: merge Created 7 years, 4 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/mock_new_credit_card_bubble_controller.cc
diff --git a/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.cc b/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e2dfa87e96b67a51082cecc107cfedc5ea0adeab
--- /dev/null
+++ b/chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.cc
@@ -0,0 +1,30 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h"
+
+#include "base/logging.h"
+#include "components/autofill/core/browser/autofill_profile.h"
+#include "components/autofill/core/browser/credit_card.h"
+
+namespace autofill {
+
+MockNewCreditCardBubbleController::MockNewCreditCardBubbleController()
+ : bubbles_shown_(0) {}
+
+MockNewCreditCardBubbleController::~MockNewCreditCardBubbleController() {}
+
+void MockNewCreditCardBubbleController::Show(
+ scoped_ptr<CreditCard> new_card,
+ scoped_ptr<AutofillProfile> billing_profile) {
+ CHECK(new_card);
+ CHECK(billing_profile);
+
+ new_card_ = new_card.Pass();
+ billing_profile_ = billing_profile.Pass();
+
+ ++bubbles_shown_;
+}
+
+} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698