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