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

Unified Diff: base/base_paths_posix.cc

Issue 2907473002: fuchsia: add base_paths_fuchsia.cc (Closed)
Patch Set: rebase Created 3 years, 7 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 | « base/base_paths_fuchsia.cc ('k') | base/path_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_paths_posix.cc
diff --git a/base/base_paths_posix.cc b/base/base_paths_posix.cc
index c5123908d35f3dfefb9fba63edd66985918b4829..00a15696cacda65ab7e22cf1571455048f0fb6e7 100644
--- a/base/base_paths_posix.cc
+++ b/base/base_paths_posix.cc
@@ -34,7 +34,6 @@
namespace base {
bool PathProviderPosix(int key, FilePath* result) {
- FilePath path;
switch (key) {
case FILE_EXE:
case FILE_MODULE: { // TODO(evanm): is this correct?
@@ -82,6 +81,7 @@ bool PathProviderPosix(int key, FilePath* result) {
// tree configurations (sub-project builds, gyp --output_dir, etc.)
std::unique_ptr<Environment> env(Environment::Create());
std::string cr_source_root;
+ FilePath path;
if (env->GetVar("CR_SOURCE_ROOT", &cr_source_root)) {
path = FilePath(cr_source_root);
if (PathExists(path)) {
« no previous file with comments | « base/base_paths_fuchsia.cc ('k') | base/path_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698