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

Unified Diff: components/translate/ios/browser/resources/translate_ios.js

Issue 2449333002: [ios] Pass more --jscomp_error switches to the closure Compiler. (Closed)
Patch Set: Added back @public Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/translate/ios/browser/resources/language_detection.js ('k') | ios/web/js_compile.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/ios/browser/resources/translate_ios.js
diff --git a/components/translate/ios/browser/resources/translate_ios.js b/components/translate/ios/browser/resources/translate_ios.js
index 9dfda6a4cad253762a8704fedee98a436cc62f83..9b9f3297b657d7629db04d2d6ba1b872ca2979f2 100644
--- a/components/translate/ios/browser/resources/translate_ios.js
+++ b/components/translate/ios/browser/resources/translate_ios.js
@@ -2,7 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-__gCrWeb['translate'] = {};
+/**
+ * @fileoverview Installs Translate management functions on the __gCrWeb object.
+ *
+ * TODO(crbug.com/659442): Enable checkTypes, checkVars errors for this file.
+ * @suppress {checkTypes, checkVars}
+ */
+
+__gCrWeb.translate = {};
+
+// Store translate namespace object in a global __gCrWeb object referenced by a
+// string, so it does not get renamed by closure compiler during the
+// minification.
+__gCrWeb['translate'] = __gCrWeb.translate;
(function() {
/**
« no previous file with comments | « components/translate/ios/browser/resources/language_detection.js ('k') | ios/web/js_compile.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698