| 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..743c033b8a71780ed549264cc1cce18e119afdae 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,12 @@ var AutofillFormData;
|
| * Namespace for this file. It depends on |__gCrWeb| having already been
|
| * injected.
|
| */
|
| -__gCrWeb['autofill'] = {};
|
| +__gCrWeb.autofill = {};
|
| +
|
| +// Store autofill namespace object in a global __gCrWeb object referenced by a
|
| +// string, so it does not get renamed by closure compiler during the
|
| +// minification.
|
| +__gCrWeb['autofill'] = __gCrWeb.autofill;
|
|
|
| /**
|
| * The maximum length allowed for form data.
|
|
|