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

Unified Diff: components/autofill/ios/browser/resources/autofill_controller.js

Issue 2449333002: [ios] Pass more --jscomp_error switches to the closure Compiler. (Closed)
Patch Set: 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/autofill_controller.js
diff --git a/components/autofill/ios/browser/resources/autofill_controller.js b/components/autofill/ios/browser/resources/autofill_controller.js
index 510a9309cbd2137e5cb5afdb460135630327244d..0a42ccae3973ccf8bb0eb58603d69bc9daff6518 100644
--- a/components/autofill/ios/browser/resources/autofill_controller.js
+++ b/components/autofill/ios/browser/resources/autofill_controller.js
@@ -2,14 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Installs Autofill management functions on the |__gCrWeb| object.
-//
-// It scans the DOM, extracting and storing forms and returns a JSON string
-// representing an array of objects, each of which represents an Autofill form
-// with information about a form to be filled and/or submitted and it can be
-// translated to struct FormData
-// (chromium/src/components/autofill/core/common/form_data.h) for further
-// processing.
+/**
+ * @fileoverview Installs Autofill management functions on the __gCrWeb object.
+ *
+ * It scans the DOM, extracting and storing forms and returns a JSON string
+ * representing an array of objects, each of which represents an Autofill form
+ * with information about a form to be filled and/or submitted and it can be
+ * translated to struct FormData
+ * (chromium/src/components/autofill/core/common/form_data.h) for further
+ * processing.
+
+ * TODO(crbug.com/647084): Enable checkTypes error for this file.
+ * @suppress {checkTypes}
+ */
/** @typedef {HTMLInputElement|HTMLTextAreaElement|HTMLSelectElement} */
var FormControlElement;
@@ -50,7 +55,8 @@ var AutofillFormData;
* Namespace for this file. It depends on |__gCrWeb| having already been
* injected.
*/
-__gCrWeb['autofill'] = {};
+__gCrWeb.autofill = {};
+__gCrWeb['autofill'] = __gCrWeb.autofill;
dpapad 2016/10/26 17:05:24 What does this line do? Seems unnecessary at first
Eugene But (OOO till 7-30) 2016/10/26 17:54:45 Stores autofill namespace object in a global __gCr
dpapad 2016/10/26 18:18:35 Ah ok, it makes sense now. I am used to seeing goo
/**
* The maximum length allowed for form data.

Powered by Google App Engine
This is Rietveld 408576698