Chromium Code Reviews| 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. |