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

Side by Side Diff: chrome/browser/resources/md_feedback/feedback_container.js

Issue 2190653003: [Md Feedback] Add initial data population for dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per afakhry@'s comments (Rebase). Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This Polymer element is used as a container for all the feedback 5 // This Polymer element is used as a container for all the feedback
6 // elements. Based on a number of factors, it determines which elements 6 // elements. Based on a number of factors, it determines which elements
7 // to show and what will be submitted to the feedback servers. 7 // to show and what will be submitted to the feedback servers.
8 Polymer({ 8 Polymer({
9 is: 'feedback-container', 9 is: 'feedback-container',
10 10
11 /** 11 properties: {
12 * Retrieves the feedback privacy note text, if it exists. On non-officially 12 /**
13 * branded builds, the string is not defined. 13 * The user's email, if available.
14 * 14 * @type {string|undefined}
15 * @return {string} Privacy note text. 15 */
16 */ 16 email: {
17 getPrivacyNote_: function() { 17 type: String,
18 return loadTimeData.valueExists('privacyNote') ? 18 },
19 this.i18n('privacyNote') : ''; 19
20 /**
21 * The URL of the page the user was on before sending feedback.
22 * @type {string|undefined}
23 */
24 url: {
25 type: String,
26 },
27 },
28
29 ready: function() {
30 // Retrieves the feedback privacy note text, if it exists. On non-official
31 // branded builds, the string is not defined.
32 this.$.privacyNote.innerHTML =
33 loadTimeData.valueExists('privacyNote') ?
34 loadTimeData.getString('privacyNote') : '';
20 }, 35 },
21 }); 36 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_feedback/feedback_container.html ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698