BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / autofill / mock_new_credit_card_bubble_controller.cc
blobe2dfa87e96b67a51082cecc107cfedc5ea0adeab
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/autofill/mock_new_credit_card_bubble_controller.h"
7 #include "base/logging.h"
8 #include "components/autofill/core/browser/autofill_profile.h"
9 #include "components/autofill/core/browser/credit_card.h"
11 namespace autofill {
13 MockNewCreditCardBubbleController::MockNewCreditCardBubbleController()
14 : bubbles_shown_(0) {}
16 MockNewCreditCardBubbleController::~MockNewCreditCardBubbleController() {}
18 void MockNewCreditCardBubbleController::Show(
19 scoped_ptr<CreditCard> new_card,
20 scoped_ptr<AutofillProfile> billing_profile) {
21 CHECK(new_card);
22 CHECK(billing_profile);
24 new_card_ = new_card.Pass();
25 billing_profile_ = billing_profile.Pass();
27 ++bubbles_shown_;
30 } // namespace autofill