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

Unified Diff: chrome/browser/ui/autofill/save_card_bubble_controller_impl.h

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Edits Created 4 years, 11 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/save_card_bubble_controller_impl.h
diff --git a/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h b/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
index aa02fa34a04c79223263f96bf4490d143032f5a9..58a80b29f4d638044f77ffa4494c75ec6f90a667 100644
--- a/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
+++ b/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_IMPL_H_
#define CHROME_BROWSER_UI_AUTOFILL_SAVE_CARD_BUBBLE_CONTROLLER_IMPL_H_
+#include <vector>
+
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/timer/elapsed_timer.h"
@@ -76,7 +78,8 @@ class SaveCardBubbleControllerImpl
void OnLegalMessageLinkClicked(const GURL& url) override;
void OnBubbleClosed() override;
- const LegalMessageLines& GetLegalMessageLines() const override;
+ const std::vector<scoped_ptr<LegalMessageLine>>& GetLegalMessageLines()
+ const override;
protected:
explicit SaveCardBubbleControllerImpl(content::WebContents* web_contents);
@@ -116,7 +119,7 @@ class SaveCardBubbleControllerImpl
bool is_reshow_;
// If no legal message should be shown then this variable is an empty vector.
- LegalMessageLines legal_message_lines_;
+ std::vector<scoped_ptr<LegalMessageLine>> legal_message_lines_;
// Used to measure the amount of time on a page; if it's less than some
// reasonable limit, then don't close the bubble upon navigation.

Powered by Google App Engine
This is Rietveld 408576698