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..135981692e3c95cf2e60591142cee45ca154425f 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 IsDesktopPlatform() { |
+#if defined(OS_ANDROID) || defined(OS_IOS) |
+ return false; |
+#else |
+ return true; |
+#endif |
+} |
+ |
} // namespace autofill |