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

Unified Diff: chrome/browser/ui/views/payments/credit_card_editor_view_controller.h

Issue 2715533002: [Payments] Add error messages to credit card editor. (Closed)
Patch Set: clean Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/credit_card_editor_view_controller.h
diff --git a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h
index 4ea2ef71990b2bf50ccd40f986b9e5916aa95b8e..c13e8f7a6000940311b250c3f85c510cf4794744 100644
--- a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h
+++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.h
@@ -35,7 +35,8 @@ class CreditCardEditorViewController : public EditorViewController {
private:
class CreditCardValidationDelegate : public ValidationDelegate {
public:
- explicit CreditCardValidationDelegate(const EditorField& field);
+ CreditCardValidationDelegate(const EditorField& field,
+ EditorViewController* controller);
~CreditCardValidationDelegate() override;
// ValidationDelegate:
@@ -47,6 +48,8 @@ class CreditCardEditorViewController : public EditorViewController {
bool ValidateValue(const base::string16& value);
EditorField field_;
+ // Outlives this class.
+ EditorViewController* controller_;
DISALLOW_COPY_AND_ASSIGN(CreditCardValidationDelegate);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698