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

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

Issue 2472593005: Revert of [ios] Pass more --jscomp_error switches to the closure Compiler. (Closed)
Patch Set: Created 4 years, 1 month 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 6e2f37289213641f4ee31b65bbf765c67a767659..d1fb9f98711162826181b2d9470188b7801f0a42 100644
--- a/components/translate/ios/browser/resources/language_detection.js
+++ b/components/translate/ios/browser/resources/language_detection.js
@@ -2,20 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-/**
- * @fileoverview Installs Language Detection management functions on the
- * __gCrWeb object.
- *
- * TODO(crbug.com/659442): Enable checkTypes error for this file.
- * @suppress {checkTypes}
- */
+__gCrWeb['languageDetection'] = {};
-__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