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 |