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

Unified Diff: components/autofill/ios/browser/resources/suggestion_controller.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/autofill/ios/browser/resources/suggestion_controller.js
diff --git a/components/autofill/ios/browser/resources/suggestion_controller.js b/components/autofill/ios/browser/resources/suggestion_controller.js
index 30ab3062690231e2e55ac04d5627947f92b416f3..69b830143a055a1ee1f20bab51f0cc262de2ecd1 100644
--- a/components/autofill/ios/browser/resources/suggestion_controller.js
+++ b/components/autofill/ios/browser/resources/suggestion_controller.js
@@ -2,13 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-/**
- * @fileoverview Installs suggestion management functions on the
- * __gCrWeb object.
- *
- * TODO(crbug.com/647084): Enable checkTypes error for this file.
- * @suppress {checkTypes}
- */
+// Installs suggestion management functions on the |__gCrWeb| object.
/* Beginning of anonymous object. */
(function() {
@@ -17,12 +11,7 @@
* Namespace for this file. It depends on |__gCrWeb| having already been
* injected.
*/
-__gCrWeb.suggestion = {};
-
-// Store suggestion namespace object in a global __gCrWeb object referenced by a
-// string, so it does not get renamed by closure compiler during the
-// minification.
-__gCrWeb['suggestion'] = __gCrWeb.suggestion;
+__gCrWeb['suggestion'] = {};
/**
* Returns the first element in |elements| that is later than |elementToCompare|

Powered by Google App Engine
This is Rietveld 408576698