Index: chrome/browser/sync/glue/device_info.cc |
diff --git a/chrome/browser/sync/glue/device_info.cc b/chrome/browser/sync/glue/device_info.cc |
index 04836c49ac24ad785011485b5b890b7157f54ab2..fc11f0438e9009fb6cae4d8f945112deaaf017e1 100644 |
--- a/chrome/browser/sync/glue/device_info.cc |
+++ b/chrome/browser/sync/glue/device_info.cc |
@@ -12,13 +12,17 @@ |
#include "content/public/browser/browser_thread.h" |
#include "sync/util/get_session_name.h" |
+#if defined(OS_ANDROID) |
Alexei Svitkine (slow)
2013/10/31 14:52:32
No need for the ifdef here, just add this include
yao
2013/11/01 14:37:59
Done.
|
+#include "chrome/common/device_form_factor.h" |
+#endif |
+ |
namespace browser_sync { |
namespace { |
#if defined(OS_ANDROID) |
bool IsTabletUI() { |
- return CommandLine::ForCurrentProcess()->HasSwitch(switches::kTabletUI); |
+ return GetDeviceFormFactor() == DEVICE_FORM_FACTOR_TABLET; |
} |
#endif |