| Index: chrome/browser/resources/translate_internals/translate_internals.js
|
| diff --git a/chrome/browser/resources/translate_internals/translate_internals.js b/chrome/browser/resources/translate_internals/translate_internals.js
|
| index a18d468d4086f47dbd50850382c99e9869527bb6..7245af61d38f2d9948a9eb4331834aa9e41e5e89 100644
|
| --- a/chrome/browser/resources/translate_internals/translate_internals.js
|
| +++ b/chrome/browser/resources/translate_internals/translate_internals.js
|
| @@ -157,8 +157,7 @@
|
| var text = formatLanguageCode(langCode);
|
|
|
| var li = createLIWithDismissingButton(text, function() {
|
| - chrome.send('removePrefItem',
|
| - ['blocked_languages', langCode]);
|
| + chrome.send('removePrefItem', ['blocked_languages', langCode]);
|
| });
|
| ul.appendChild(li);
|
| });
|
| @@ -174,8 +173,7 @@
|
| var text = formatLanguageCode(langCode);
|
|
|
| var li = createLIWithDismissingButton(text, function() {
|
| - chrome.send('removePrefItem',
|
| - ['language_blacklist', langCode]);
|
| + chrome.send('removePrefItem', ['language_blacklist', langCode]);
|
| });
|
| ul.appendChild(li);
|
| });
|
| @@ -207,16 +205,16 @@
|
| formatLanguageCode(toLangCode);
|
|
|
| var li = createLIWithDismissingButton(text, function() {
|
| - chrome.send('removePrefItem',
|
| - ['whitelists', fromLangCode, toLangCode]);
|
| + chrome.send(
|
| + 'removePrefItem', ['whitelists', fromLangCode, toLangCode]);
|
| });
|
| ul.appendChild(li);
|
| });
|
| }
|
|
|
| var p = $('prefs-too-often-denied');
|
| - p.classList.toggle('prefs-setting-disabled',
|
| - !detail['translate_too_often_denied']);
|
| + p.classList.toggle(
|
| + 'prefs-setting-disabled', !detail['translate_too_often_denied']);
|
| p.appendChild(createDismissingButton(
|
| chrome.send.bind(null, 'removePrefItem', ['too_often_denied'])));
|
|
|
| @@ -268,11 +266,11 @@
|
| var country = details['country'];
|
|
|
| var h2 = $('override-variations-country');
|
| - h2.title = (
|
| - 'Changing this value will override the permanent country stored ' +
|
| - 'by variations. Normally, this value gets automatically updated ' +
|
| - 'with a new value received from the variations server when ' +
|
| - 'Chrome is updated.');
|
| + h2.title =
|
| + ('Changing this value will override the permanent country stored ' +
|
| + 'by variations. Normally, this value gets automatically updated ' +
|
| + 'with a new value received from the variations server when ' +
|
| + 'Chrome is updated.');
|
|
|
| var input = document.createElement('input');
|
| input.type = 'text';
|
| @@ -291,8 +289,9 @@
|
| var div1 = document.createElement('div');
|
| div1.textContent = 'Permanent stored country updated.';
|
| var div2 = document.createElement('div');
|
| - div2.textContent = ('You will need to restart your browser ' +
|
| - 'for the changes to take effect.');
|
| + div2.textContent =
|
| + ('You will need to restart your browser ' +
|
| + 'for the changes to take effect.');
|
| p.appendChild(div1);
|
| p.appendChild(div2);
|
| }
|
| @@ -340,8 +339,8 @@
|
| var minuteStr = padWithZeros(minute, 2);
|
| var secondStr = padWithZeros(second, 2);
|
|
|
| - var str = yearStr + '-' + monthStr + '-' + dayStr + ' ' +
|
| - hourStr + ':' + minuteStr + ':' + secondStr;
|
| + var str = yearStr + '-' + monthStr + '-' + dayStr + ' ' + hourStr + ':' +
|
| + minuteStr + ':' + secondStr;
|
|
|
| return str;
|
| }
|
| @@ -373,18 +372,22 @@
|
|
|
| appendTD(tr, formatDate(new Date(detail['time'])), 'detection-logs-time');
|
| appendTD(tr, detail['url'], 'detection-logs-url');
|
| - appendTD(tr, formatLanguageCode(detail['content_language']),
|
| - 'detection-logs-content-language');
|
| - appendTD(tr, formatLanguageCode(detail['cld_language']),
|
| - 'detection-logs-cld-language');
|
| + appendTD(
|
| + tr, formatLanguageCode(detail['content_language']),
|
| + 'detection-logs-content-language');
|
| + appendTD(
|
| + tr, formatLanguageCode(detail['cld_language']),
|
| + 'detection-logs-cld-language');
|
| appendTD(tr, detail['is_cld_reliable'], 'detection-logs-is-cld-reliable');
|
| appendTD(tr, detail['has_notranslate'], 'detection-logs-has-notranslate');
|
| - appendTD(tr, formatLanguageCode(detail['html_root_language']),
|
| - 'detection-logs-html-root-language');
|
| - appendTD(tr, formatLanguageCode(detail['adopted_language']),
|
| - 'detection-logs-adopted-language');
|
| - appendTD(tr, formatLanguageCode(detail['content']),
|
| - 'detection-logs-content');
|
| + appendTD(
|
| + tr, formatLanguageCode(detail['html_root_language']),
|
| + 'detection-logs-html-root-language');
|
| + appendTD(
|
| + tr, formatLanguageCode(detail['adopted_language']),
|
| + 'detection-logs-adopted-language');
|
| + appendTD(
|
| + tr, formatLanguageCode(detail['content']), 'detection-logs-content');
|
|
|
| // TD (and TR) can't use the CSS property 'max-height', so DIV
|
| // in the content is needed.
|
| @@ -428,8 +431,8 @@
|
| function onTranslateEventDetailsAdded(details) {
|
| var tr = document.createElement('tr');
|
| appendTD(tr, formatDate(new Date(details['time'])), 'event-logs-time');
|
| - appendTD(tr, details['filename'] + ': ' + details['line'],
|
| - 'event-logs-place');
|
| + appendTD(
|
| + tr, details['filename'] + ': ' + details['line'], 'event-logs-place');
|
| appendTD(tr, details['message'], 'event-logs-message');
|
|
|
| var tbody = $('tabpanel-event-logs').getElementsByTagName('tbody')[0];
|
| @@ -483,8 +486,8 @@
|
| a.setAttribute('download', filename);
|
|
|
| var event = document.createEvent('MouseEvent');
|
| - event.initMouseEvent('click', true, true, window, 0,
|
| - 0, 0, 0, 0, 0, 0, 0, 0, 0, null);
|
| + event.initMouseEvent(
|
| + 'click', true, true, window, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, null);
|
| a.dispatchEvent(event);
|
| }
|
|
|
| @@ -499,8 +502,8 @@
|
| * The entry point of the UI.
|
| */
|
| function main() {
|
| - cr.doc.addEventListener('DOMContentLoaded',
|
| - cr.translateInternals.initialize);
|
| + cr.doc.addEventListener(
|
| + 'DOMContentLoaded', cr.translateInternals.initialize);
|
| }
|
|
|
| main();
|
|
|