OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
qsr
2012/11/13 10:58:12
Remove the (c)
blundell
2012/11/13 14:07:42
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SYNC_UTIL_GET_SESSION_NAME_WIN_H_ | 5 #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.
| |
6 #define SYNC_UTIL_GET_SESSION_NAME_WIN_H_ | |
7 | 6 |
8 #include <string> | 7 #import <UIKit/UIKit.h> |
8 | |
9 #include "base/sys_string_conversions.h" | |
9 | 10 |
10 namespace syncer { | 11 namespace syncer { |
11 namespace internal { | 12 namespace internal { |
12 | 13 |
13 std::string GetComputerName(); | 14 std::string GetComputerName() { |
15 return base::SysNSStringToUTF8([[UIDevice currentDevice] name]); | |
16 } | |
14 | 17 |
15 } // namespace internal | 18 } // namespace internal |
16 } // namespace syncer | 19 } // namespace syncer |
17 | |
18 #endif // SYNC_UTIL_GET_SESSION_NAME_WIN_H_ | |
OLD | NEW |