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

Side by Side 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: Created 8 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/chromeos/chromeos_version.cc » ('j') | base/chromeos/chromeos_version.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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();
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_
OLDNEW
« no previous file with comments | « no previous file | base/chromeos/chromeos_version.cc » ('j') | base/chromeos/chromeos_version.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698