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

Side by Side Diff: chrome/browser/resources/feedback/js/feedback.js

Issue 2900643004: More descriptive feedback description in feedbacks filed from the SadTab page (Closed)
Patch Set: Created 3 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 * @type {string} 6 * @type {string}
7 * @const 7 * @const
8 */ 8 */
9 var SRT_DOWNLOAD_PAGE = 'https://www.google.com/chrome/cleanup-tool/'; 9 var SRT_DOWNLOAD_PAGE = 'https://www.google.com/chrome/cleanup-tool/';
10 10
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 } 387 }
388 388
389 // <if expr="chromeos"> 389 // <if expr="chromeos">
390 if (feedbackInfo.traceId && ($('performance-info-area'))) { 390 if (feedbackInfo.traceId && ($('performance-info-area'))) {
391 $('performance-info-area').hidden = false; 391 $('performance-info-area').hidden = false;
392 $('performance-info-checkbox').checked = true; 392 $('performance-info-checkbox').checked = true;
393 performanceFeedbackChanged(); 393 performanceFeedbackChanged();
394 $('performance-info-link').onclick = openSlowTraceWindow; 394 $('performance-info-link').onclick = openSlowTraceWindow;
395 } 395 }
396 // </if> 396 // </if>
397 chrome.feedbackPrivate.getStrings(function(strings) { 397 chrome.feedbackPrivate.getStrings(feedbackInfo.flow, function(strings) {
398 loadTimeData.data = strings; 398 loadTimeData.data = strings;
399 i18nTemplate.process(document, loadTimeData); 399 i18nTemplate.process(document, loadTimeData);
400 400
401 if ($('sys-info-url')) { 401 if ($('sys-info-url')) {
402 // Opens a new window showing the full anonymized system+app 402 // Opens a new window showing the full anonymized system+app
403 // information. 403 // information.
404 $('sys-info-url').onclick = function() { 404 $('sys-info-url').onclick = function() {
405 var win = chrome.app.window.get(SYSINFO_WINDOW_ID); 405 var win = chrome.app.window.get(SYSINFO_WINDOW_ID);
406 if (win) { 406 if (win) {
407 win.show(); 407 win.show();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 $('cancel-button').onclick = cancel; 457 $('cancel-button').onclick = cancel;
458 $('remove-attached-file').onclick = clearAttachedFile; 458 $('remove-attached-file').onclick = clearAttachedFile;
459 // <if expr="chromeos"> 459 // <if expr="chromeos">
460 $('performance-info-checkbox').addEventListener( 460 $('performance-info-checkbox').addEventListener(
461 'change', performanceFeedbackChanged); 461 'change', performanceFeedbackChanged);
462 // </if> 462 // </if>
463 }); 463 });
464 } 464 }
465 465
466 initialize(); 466 initialize();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698