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

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

Issue 13625002: Change the behavior of the [X] Save details to Wallet checkbox notification to: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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/autofill_dialog_types.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_types.h b/chrome/browser/ui/autofill/autofill_dialog_types.h
index f144d8c32c24fa26d2dbb4d47402fe85101757cf..bd1b73c595a1708545c691085c73fc6ec6433165 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_types.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_types.h
@@ -95,12 +95,20 @@ class DialogNotification {
const string16& display_text() const { return display_text_; }
Type type() const { return type_; }
+ void set_checked(bool checked) { checked_ = checked; }
+ bool checked() const { return checked_; }
+
void set_interactive(bool interactive) { interactive_ = interactive; }
bool interactive() const { return interactive_; }
private:
Type type_;
string16 display_text_;
+
+ // Whether the dialog notification's checkbox should be checked. Only applies
+ // when |HasCheckbox()| is true.
+ bool checked_;
+
// When false, this disables user interaction with the notification. For
// example, WALLET_USAGE_CONFIRMATION notifications set this to false after
// the submit flow has started.
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_models_unittest.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698