| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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(); |
| OLD | NEW |