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

Unified Diff: components/translate/ios/browser/resources/language_detection.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
Index: components/translate/ios/browser/resources/language_detection.js
diff --git a/components/translate/ios/browser/resources/language_detection.js b/components/translate/ios/browser/resources/language_detection.js
index d1fb9f98711162826181b2d9470188b7801f0a42..6e2f37289213641f4ee31b65bbf765c67a767659 100644
--- a/components/translate/ios/browser/resources/language_detection.js
+++ b/components/translate/ios/browser/resources/language_detection.js
@@ -2,8 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-__gCrWeb['languageDetection'] = {};
+/**
+ * @fileoverview Installs Language Detection management functions on the
+ * __gCrWeb object.
+ *
+ * TODO(crbug.com/659442): Enable checkTypes error for this file.
+ * @suppress {checkTypes}
+ */
+
+__gCrWeb.languageDetection = {};
+// Store languageDetection namespace object in a global __gCrWeb object
+// referenced by a string, so it does not get renamed by closure compiler during
+// the minification.
+__gCrWeb['languageDetection'] = __gCrWeb.languageDetection;
(function() {
/**

Powered by Google App Engine
This is Rietveld 408576698