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

Unified Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2155063003: MD Settings: more useful bug filing link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge fix Created 4 years, 5 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 | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/settings_ui/settings_ui.js
diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui.js b/chrome/browser/resources/settings/settings_ui/settings_ui.js
index 162a0f0b758530cb8dbbc0ce42d635127fdd8061..f4eef891c3fb357f16f964d2680f60f4890b2b26 100644
--- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
@@ -32,6 +32,27 @@ Polymer({
return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_);
},
},
+
+ /** @private */
+ appealBugUrl_: {
+ type: String,
+ value: function() {
+ var url =
+ 'https://bugs.chromium.org/p/chromium/issues/entry?' +
+ 'labels=Proj-MaterialDesign-WebUI,Pri-2,Type-Bug&' +
+ 'components=UI%3ESettings&description=';
+ var description =
+ 'What steps will reproduce the problem?\n' +
+ '(1) \n(2) \n(3) \n\nWhat is the expected result?\n\n\n' +
+ 'What happens instead?\n\n\nPlease provide any additional ' +
+ 'information below. Attach a screenshot if possible.\n\n';
+ var version = navigator.userAgent.match(/Chrom(?:e|ium)\/([\d.]+)/);
+ if (version)
+ description += 'Version: ' + version[1];
+ url += encodeURIComponent(description);
+ return url;
+ },
+ },
},
listeners: {
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698