Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: base/chromeos/chromeos_version.h

Issue 10843041: Add OS_CHROMEOS case in file_util::GetHomeDir() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove unnecessary code. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/chromeos/chromeos_version.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | base/chromeos/chromeos_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698