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

Side by Side Diff: base/base_paths_linux.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "base/base_paths.h" 5 #include "base/base_paths.h"
6 6
7 #include <unistd.h> 7 #include <unistd.h>
8 #if defined(OS_FREEBSD) 8 #if defined(OS_FREEBSD)
9 #include <sys/param.h> 9 #include <sys/param.h>
10 #include <sys/sysctl.h> 10 #include <sys/sysctl.h>
11 #endif 11 #endif
12 12
13 #include "base/environment.h" 13 #include "base/environment.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/scoped_ptr.h"
17 #include "base/path_service.h" 18 #include "base/path_service.h"
18 #include "base/scoped_ptr.h"
19 #include "base/sys_string_conversions.h" 19 #include "base/sys_string_conversions.h"
20 #include "base/nix/xdg_util.h" 20 #include "base/nix/xdg_util.h"
21 21
22 namespace base { 22 namespace base {
23 23
24 #if defined(OS_LINUX) 24 #if defined(OS_LINUX)
25 const char kSelfExe[] = "/proc/self/exe"; 25 const char kSelfExe[] = "/proc/self/exe";
26 #elif defined(OS_SOLARIS) 26 #elif defined(OS_SOLARIS)
27 const char kSelfExe[] = getexecname(); 27 const char kSelfExe[] = getexecname();
28 #endif 28 #endif
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 scoped_ptr<base::Environment> env(base::Environment::Create()); 107 scoped_ptr<base::Environment> env(base::Environment::Create());
108 FilePath cache_dir(base::nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME", 108 FilePath cache_dir(base::nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME",
109 ".cache")); 109 ".cache"));
110 *result = cache_dir; 110 *result = cache_dir;
111 return true; 111 return true;
112 } 112 }
113 return false; 113 return false;
114 } 114 }
115 115
116 } // namespace base 116 } // namespace base
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/callback_internal.h » ('j') | base/callback_internal.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698