Resubmit "Add an UMA metric to track whether running on a tablet".

Original review: https://codereview.chromium.org/262773015/

BUG=353701
[email protected], [email protected], [email protected]

Review URL: https://codereview.chromium.org/271953002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270197 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index 3ff1f1e..27e9fe1e 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -14,11 +14,13 @@
 #include "base/files/file_path.h"
 #include "base/i18n/rtl.h"
 #include "base/memory/scoped_ptr.h"
+#include "base/metrics/histogram.h"
 #include "base/path_service.h"
 #include "base/scoped_native_library.h"
 #include "base/strings/string_number_conversions.h"
 #include "base/strings/utf_string_conversions.h"
 #include "base/win/metro.h"
+#include "base/win/win_util.h"
 #include "base/win/windows_version.h"
 #include "base/win/wrapped_window_proc.h"
 #include "chrome/browser/browser_util_win.h"
@@ -245,6 +247,8 @@
 void ChromeBrowserMainPartsWin::PostBrowserStart() {
   ChromeBrowserMainParts::PostBrowserStart();
 
+  UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice());
+
   // Set up a task to verify installed modules in the current process. Use a
   // delay to reduce the impact on startup time.
   content::BrowserThread::GetMessageLoopProxyForThread(