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

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

Issue 2242353002: [ios] Put autofill scripts into anonymous function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « components/autofill/ios/browser/resources/autofill_controller.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 abc088af5d10fc23aa210e136faeb15f7c626eef..69b830143a055a1ee1f20bab51f0cc262de2ecd1 100644
--- a/components/autofill/ios/browser/resources/suggestion_controller.js
+++ b/components/autofill/ios/browser/resources/suggestion_controller.js
@@ -4,6 +4,9 @@
// Installs suggestion management functions on the |__gCrWeb| object.
+/* Beginning of anonymous object. */
+(function() {
+
/**
* Namespace for this file. It depends on |__gCrWeb| having already been
* injected.
@@ -313,3 +316,5 @@ __gCrWeb.suggestion['hasPreviousElement'] = function(formName, fieldName) {
return __gCrWeb.suggestion.getPreviousElementInTabOrder(
currentElement, document.all) !== null;
};
+
+}()); // End of anonymous object
« no previous file with comments | « components/autofill/ios/browser/resources/autofill_controller.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698