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

Side by Side Diff: base/base_paths.cc

Issue 468253002: Move file_util to base/files/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to add forwarding header to patch Created 6 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 | Annotate | Revision Log
« no previous file with comments | « base/base.gypi ('k') | base/base_paths_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/file_util.h"
8 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 10
11 namespace base { 11 namespace base {
12 12
13 bool PathProvider(int key, FilePath* result) { 13 bool PathProvider(int key, FilePath* result) {
14 // NOTE: DIR_CURRENT is a special case in PathService::Get 14 // NOTE: DIR_CURRENT is a special case in PathService::Get
15 15
16 switch (key) { 16 switch (key) {
17 case DIR_EXE: 17 case DIR_EXE:
18 PathService::Get(FILE_EXE, result); 18 PathService::Get(FILE_EXE, result);
(...skipping 18 matching lines...) Expand all
37 *result = result->Append(FILE_PATH_LITERAL("data")); 37 *result = result->Append(FILE_PATH_LITERAL("data"));
38 if (!PathExists(*result)) // We don't want to create this. 38 if (!PathExists(*result)) // We don't want to create this.
39 return false; 39 return false;
40 return true; 40 return true;
41 default: 41 default:
42 return false; 42 return false;
43 } 43 }
44 } 44 }
45 45
46 } // namespace base 46 } // namespace base
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/base_paths_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698