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

Side by Side 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: 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-ui' implements the UI for the Settings page. 7 * 'settings-ui' implements the UI for the Settings page.
8 * 8 *
9 * Example: 9 * Example:
10 * 10 *
(...skipping 12 matching lines...) Expand all
23 /** @type {?settings.DirectionDelegate} */ 23 /** @type {?settings.DirectionDelegate} */
24 directionDelegate: { 24 directionDelegate: {
25 observer: 'directionDelegateChanged_', 25 observer: 'directionDelegateChanged_',
26 type: Object, 26 type: Object,
27 }, 27 },
28 28
29 appealClosed_: { 29 appealClosed_: {
30 type: Boolean, 30 type: Boolean,
31 value: function() { 31 value: function() {
32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_); 32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_);
33 },
34
35 /** @private */
36 appealBugUrl_: {
37 type: String,
38 value: function() {
39 var url =
40 'https://bugs.chromium.org/p/chromium/issues/entry?' +
41 'labels=Proj-MaterialDesign-WebUI,Pri-2,Type-Bug&' +
42 'components=UI%3ESettings&description=';
43 var description =
44 'What steps will reproduce the problem?\n' +
45 '(1) \n(2) \n(3) \n\nWhat is the expected result?\n\n\n' +
46 'What happens instead?\n\n\nPlease provide any additional ' +
47 'information below. Attach a screenshot if possible.\n\n';
48 var version = navigator.userAgent.match(/Chrom(?:e|ium)\/([\d.]+)/);
49 if (version)
Dan Beam 2016/07/18 04:58:13 when do you expect this to fail?
michaelpg 2016/07/18 17:19:49 There have been bugs in the past where the version
50 description += 'Version: ' + version[1];
51 url += encodeURIComponent(description);
52 return url;
33 }, 53 },
34 }, 54 },
35 }, 55 },
36 56
37 listeners: { 57 listeners: {
38 'sideNav.iron-activate': 'onIronActivate_', 58 'sideNav.iron-activate': 'onIronActivate_',
39 }, 59 },
40 60
41 /** @private */ 61 /** @private */
42 onCloseAppealTap_: function() { 62 onCloseAppealTap_: function() {
(...skipping 20 matching lines...) Expand all
63 this.$$('settings-main').searchContents(e.detail); 83 this.$$('settings-main').searchContents(e.detail);
64 }.bind(this)); 84 }.bind(this));
65 }, 85 },
66 86
67 /** @private */ 87 /** @private */
68 directionDelegateChanged_: function() { 88 directionDelegateChanged_: function() {
69 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? 89 this.$$('app-drawer').align = this.directionDelegate.isRtl() ?
70 'right' : 'left'; 90 'right' : 'left';
71 }, 91 },
72 }); 92 });
OLDNEW
« 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