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

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: components/autofill review. 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..7631d6158028d4e7564623330df417d569438ef1 100644
--- a/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
+++ b/chrome/browser/ui/autofill/save_card_bubble_controller_impl.h
@@ -29,33 +29,6 @@ class SaveCardBubbleControllerImpl
// Sets up the controller for upload and shows the bubble.
// |save_card_callback| will be invoked if and when the Save button is
// pressed. The contents of |legal_message| will be displayed in the bubble.
- //
- // Example of valid |legal_message| data:
- // {
- // "line" : [ {
- // "template" : "The legal documents are: {0} and {1}",
- // "template_parameter" : [ {
- // "display_text" : "Terms of Service",
- // "url": "http://www.example.com/tos"
- // }, {
- // "display_text" : "Privacy Policy",
- // "url": "http://www.example.com/pp"
- // } ],
- // }, {
- // "template" : "This is the second line and it has no parameters"
- // } ]
- // }
- //
- // Caveats:
- // 1. '{' and '}' may be displayed by escaping them with an apostrophe in the
- // template string, e.g. "template" : "Here is a literal '{'"
- // 2. Two or more consecutive dollar signs in the template string will not
- // expand correctly.
- // 3. "${" anywhere in the template string is invalid.
- // 4. "\n" embedded anywhere in the template string, or an empty template
- // string, can be used to separate paragraphs. It is not possible to create
- // a completely blank line by using two consecutive newlines (they will be
- // treated as a single newline by views::StyledLabel).
void ShowBubbleForUpload(const base::Closure& save_card_callback,
scoped_ptr<base::DictionaryValue> legal_message);

Powered by Google App Engine
This is Rietveld 408576698