| Index: chrome/browser/resources/translate.js
|
| diff --git a/chrome/browser/resources/translate.js b/chrome/browser/resources/translate.js
|
| index 24153db2cc5c0bf93a4543dd7d4d82f95d87c63a..6568d35ed35b5d0daf110573522e1e36a12e6d69 100644
|
| --- a/chrome/browser/resources/translate.js
|
| +++ b/chrome/browser/resources/translate.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -74,7 +74,7 @@ cr.googleTranslate = (function() {
|
| */
|
| get sourceLang() {
|
| if (!libReady || !finished || error)
|
| - return "";
|
| + return '';
|
| return lib.getDetectedLanguage();
|
| },
|
|
|
| @@ -108,10 +108,10 @@ cr.googleTranslate = (function() {
|
| * Entry point called by the Translate Element once it has been injected in
|
| * the page.
|
| */
|
| - onTranslateElementLoad : function() {
|
| + onTranslateElementLoad: function() {
|
| try {
|
| lib = google.translate.TranslateService({});
|
| - } catch(err) {
|
| + } catch (err) {
|
| error = true;
|
| return;
|
| }
|
|
|