Chromium Code Reviews| 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 BASE_CHROMEOS_CHROMEOS_VERSION_H_ | 5 #ifndef BASE_CHROMEOS_CHROMEOS_VERSION_H_ |
| 6 #define BASE_CHROMEOS_CHROMEOS_VERSION_H_ | 6 #define BASE_CHROMEOS_CHROMEOS_VERSION_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 | |
| 8 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 9 | 11 |
| 10 namespace base { | 12 namespace base { |
| 11 namespace chromeos { | 13 namespace chromeos { |
| 12 | 14 |
| 13 // Returns true if the browser is running on Chrome OS. | 15 // Returns true if the browser is running on Chrome OS. |
| 14 // Useful for implementing stubs for Linux desktop. | 16 // Useful for implementing stubs for Linux desktop. |
| 15 BASE_EXPORT bool IsRunningOnChromeOS(); | 17 BASE_EXPORT bool IsRunningOnChromeOS(); |
| 16 | 18 |
| 19 // Returns the home directory path, or an empty string if the home directory | |
| 20 // is not found. | |
| 21 BASE_EXPORT std::string GetHomeDirectory(); | |
|
darin (slow to review)
2012/08/02 06:55:35
Why isn't this just exposed as PathService::Get(ba
satorux1
2012/08/02 07:02:32
That's a great great idea. haruki@, please revise
Haruki Sato
2012/08/03 06:50:01
Thank you for the helpful advice!
Also talked to
| |
| 22 | |
| 17 } // namespace chromeos | 23 } // namespace chromeos |
| 18 } // namespace base | 24 } // namespace base |
| 19 | 25 |
| 20 #endif // BASE_CHROMEOS_CHROMEOS_VERSION_H_ | 26 #endif // BASE_CHROMEOS_CHROMEOS_VERSION_H_ |
| OLD | NEW |