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

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

Powered by Google App Engine
This is Rietveld 408576698