Index: sync/util/get_session_name_ios.mm |
diff --git a/sync/util/get_session_name_win.h b/sync/util/get_session_name_ios.mm |
similarity index 55% |
copy from sync/util/get_session_name_win.h |
copy to sync/util/get_session_name_ios.mm |
index 8ec903f6094a15a0bb3b2cc38b5fb70fd3d89da2..dbc04f44db86f778cad68f25f5fe1831aefa7db0 100644 |
--- a/sync/util/get_session_name_win.h |
+++ b/sync/util/get_session_name_ios.mm |
@@ -2,17 +2,18 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef SYNC_UTIL_GET_SESSION_NAME_WIN_H_ |
-#define SYNC_UTIL_GET_SESSION_NAME_WIN_H_ |
+#include "sync/util/get_session_name_ios.h" |
qsr
2012/11/13 10:58:12
Same thing here about copy
blundell
2012/11/13 14:07:42
Done.
|
-#include <string> |
+#import <UIKit/UIKit.h> |
+ |
+#include "base/sys_string_conversions.h" |
namespace syncer { |
namespace internal { |
-std::string GetComputerName(); |
+std::string GetComputerName() { |
+ return base::SysNSStringToUTF8([[UIDevice currentDevice] name]); |
+} |
} // namespace internal |
} // namespace syncer |
- |
-#endif // SYNC_UTIL_GET_SESSION_NAME_WIN_H_ |