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

Unified Diff: sync/util/get_session_name.cc

Issue 11360194: Bring up minimal sync and sync unittest targets on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 1 month 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 | « sync/sync.gyp ('k') | sync/util/get_session_name_ios.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/get_session_name.cc
diff --git a/sync/util/get_session_name.cc b/sync/util/get_session_name.cc
index 3eede5af9db9b7b8bfbe9b56e3cf8d32a6f6bd9c..244aa14df8d893b52301ae356b479b67a16f338c 100644
--- a/sync/util/get_session_name.cc
+++ b/sync/util/get_session_name.cc
@@ -15,6 +15,8 @@
#include "chrome/browser/chromeos/system/statistics_provider.h"
#elif defined(OS_LINUX)
#include "base/linux_util.h"
+#elif defined(OS_IOS)
+#include "sync/util/get_session_name_ios.h"
#elif defined(OS_MACOSX)
#include "sync/util/get_session_name_mac.h"
#elif defined(OS_WIN)
@@ -44,6 +46,8 @@ std::string GetSessionNameSynchronously() {
session_name = board.substr(0, 6) == "stumpy" ? "Chromebox" : "Chromebook";
#elif defined(OS_LINUX)
session_name = base::GetLinuxDistro();
+#elif defined(OS_IOS)
+ session_name = internal::GetComputerName();
#elif defined(OS_MACOSX)
session_name = internal::GetHardwareModelName();
#elif defined(OS_WIN)
« no previous file with comments | « sync/sync.gyp ('k') | sync/util/get_session_name_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698