OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
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 #include "sync/util/get_session_name.h" | 5 #include "sync/util/get_session_name.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
13 #include "base/task_runner.h" | 13 #include "base/task_runner.h" |
| 14 #include "build/build_config.h" |
14 | 15 |
15 #if defined(OS_CHROMEOS) | 16 #if defined(OS_CHROMEOS) |
16 #include "chromeos/system/devicetype.h" | 17 #include "chromeos/system/devicetype.h" |
17 #elif defined(OS_LINUX) | 18 #elif defined(OS_LINUX) |
18 #include "sync/util/get_session_name_linux.h" | 19 #include "sync/util/get_session_name_linux.h" |
19 #elif defined(OS_IOS) | 20 #elif defined(OS_IOS) |
20 #include "sync/util/get_session_name_ios.h" | 21 #include "sync/util/get_session_name_ios.h" |
21 #elif defined(OS_MACOSX) | 22 #elif defined(OS_MACOSX) |
22 #include "sync/util/get_session_name_mac.h" | 23 #include "sync/util/get_session_name_mac.h" |
23 #elif defined(OS_WIN) | 24 #elif defined(OS_WIN) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 base::Bind(&OnSessionNameFilled, | 95 base::Bind(&OnSessionNameFilled, |
95 done_callback, | 96 done_callback, |
96 base::Owned(session_name))); | 97 base::Owned(session_name))); |
97 } | 98 } |
98 | 99 |
99 std::string GetSessionNameSynchronouslyForTesting() { | 100 std::string GetSessionNameSynchronouslyForTesting() { |
100 return GetSessionNameSynchronously(); | 101 return GetSessionNameSynchronously(); |
101 } | 102 } |
102 | 103 |
103 } // namespace syncer | 104 } // namespace syncer |
OLD | NEW |