Chromium Code Reviews| Index: base/chromeos/chromeos_version.h |
| diff --git a/base/chromeos/chromeos_version.h b/base/chromeos/chromeos_version.h |
| index 25acd43a9f0867357f7eaa3adabc892a8c5f24ab..fa956829de316a8625c4d47a7e5e9db5e71a81c3 100644 |
| --- a/base/chromeos/chromeos_version.h |
| +++ b/base/chromeos/chromeos_version.h |
| @@ -5,6 +5,8 @@ |
| #ifndef BASE_CHROMEOS_CHROMEOS_VERSION_H_ |
| #define BASE_CHROMEOS_CHROMEOS_VERSION_H_ |
| +#include <string> |
| + |
| #include "base/base_export.h" |
| namespace base { |
| @@ -14,6 +16,10 @@ namespace chromeos { |
| // Useful for implementing stubs for Linux desktop. |
| BASE_EXPORT bool IsRunningOnChromeOS(); |
| +// Returns the home directory path, or an empty string if the home directory |
| +// is not found. |
| +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
|
| + |
| } // namespace chromeos |
| } // namespace base |