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..76033de2758e4eef9a5cd364e10fca0ec7f0c03a 100644 |
--- a/chrome/browser/sync/glue/device_info.cc |
+++ b/chrome/browser/sync/glue/device_info.cc |
@@ -11,6 +11,7 @@ |
#include "chrome/common/chrome_switches.h" |
#include "content/public/browser/browser_thread.h" |
#include "sync/util/get_session_name.h" |
+#include "ui/base/device_form_factor.h" |
namespace browser_sync { |
@@ -18,7 +19,7 @@ namespace { |
#if defined(OS_ANDROID) |
bool IsTabletUI() { |
- return CommandLine::ForCurrentProcess()->HasSwitch(switches::kTabletUI); |
+ return ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_TABLET; |
} |
#endif |