Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: chrome/browser/sync/glue/session_model_associator.cc

Issue 10808052: Tidy up Android's is-tablet functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/chrome_startup_flags.cc ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/session_model_associator.cc
diff --git a/chrome/browser/sync/glue/session_model_associator.cc b/chrome/browser/sync/glue/session_model_associator.cc
index feef2cc5ac795766cdef48ae26ec68e237164f75..ab2230e867821320dd78d99fd94677672b4f4bcb 100644
--- a/chrome/browser/sync/glue/session_model_associator.cc
+++ b/chrome/browser/sync/glue/session_model_associator.cc
@@ -68,6 +68,12 @@ static const int kMaxSyncNavigationCount = 6;
// stale and becomes a candidate for garbage collection.
static const size_t kDefaultStaleSessionThresholdDays = 14; // 2 weeks.
+#if defined(OS_ANDROID)
+bool IsTabletUi() {
sky 2012/07/20 16:58:09 I've never seen Ui capitalized like this -> UI
benm (inactive) 2012/07/23 09:17:04 Done.
+ return CommandLine::ForCurrentProcess()->HasSwitch(switches::kTabletUi);
+}
+#endif
+
sync_pb::SessionHeader::DeviceType GetLocalDeviceType() {
// TODO(yfriedman): Refactor/combine with "DeviceInformation" code in
// sync_manager.cc[1060]
@@ -80,7 +86,7 @@ sync_pb::SessionHeader::DeviceType GetLocalDeviceType() {
#elif defined(OS_WIN)
return sync_pb::SessionHeader_DeviceType_TYPE_WIN;
#elif defined(OS_ANDROID)
- return syncer::internal::IsTabletUi() ?
+ return IsTabletUi() ?
sync_pb::SessionHeader_DeviceType_TYPE_TABLET :
sync_pb::SessionHeader_DeviceType_TYPE_PHONE;
#else
« no previous file with comments | « chrome/browser/android/chrome_startup_flags.cc ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698