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 #ifndef SYNC_UTIL_GET_SESSION_NAME_MAC_H_ | 5 #ifndef SYNC_UTIL_GET_SESSION_NAME_MAC_H_ |
6 #define SYNC_UTIL_GET_SESSION_NAME_MAC_H_ | 6 #define SYNC_UTIL_GET_SESSION_NAME_MAC_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 namespace syncer { | 10 namespace syncer { |
12 namespace internal { | 11 namespace internal { |
13 | 12 |
14 // Returns the Hardware model name, without trailing numbers, if | 13 // Returns the Hardware model name, without trailing numbers, if |
15 // possible. See http://www.cocoadev.com/index.pl?MacintoshModels for | 14 // possible. See http://www.cocoadev.com/index.pl?MacintoshModels for |
16 // an example list of models. If an error occurs trying to read the | 15 // an example list of models. If an error occurs trying to read the |
17 // model, this simply returns "Unknown". | 16 // model, this simply returns "Unknown". |
18 std::string GetHardwareModelName(); | 17 std::string GetHardwareModelName(); |
19 | 18 |
20 } // namespace internal | 19 } // namespace internal |
21 } // namespace syncer | 20 } // namespace syncer |
22 | 21 |
23 #endif // SYNC_UTIL_GET_SESSION_NAME_MAC_H_ | 22 #endif // SYNC_UTIL_GET_SESSION_NAME_MAC_H_ |
OLD | NEW |