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

Unified Diff: components/autofill/core/common/autofill_util.cc

Issue 1473733008: [Autofill] Respect the autocomplete=off attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/core/common/autofill_util.cc
diff --git a/components/autofill/core/common/autofill_util.cc b/components/autofill/core/common/autofill_util.cc
index b2c3671daaa0bd70873e0e4c341545577c2998f9..ef7b90399e21849da5bd3dabb191b07453fc16c9 100644
--- a/components/autofill/core/common/autofill_util.cc
+++ b/components/autofill/core/common/autofill_util.cc
@@ -96,4 +96,12 @@ size_t GetTextSelectionStart(const base::string16& suggestion,
return base::string16::npos;
}
+bool IsOnDesktop() {
+#if defined(OS_ANDROID) || defined(OS_IOS)
+ return false;
+#else
+ return true;
+#endif
+}
+
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698