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

Side by Side Diff: sync/util/get_session_name_ios.mm

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: 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« sync/util/get_session_name_ios.h ('K') | « sync/util/get_session_name_ios.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698