1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/base_paths.h"
9 #include "base/base_paths_fuchsia.h"
10 #include "base/command_line.h"
11 #include "base/files/file_util.h"
12 #include "base/path_service.h"
13 #include "base/process/process.h"
17 base::FilePath GetPackageRoot() {
18 return base::FilePath("/pkg");
21 bool PathProviderFuchsia(int key, FilePath* result) {
27 *result = CommandLine::ForCurrentProcess()->GetProgram();
30 // TODO(https://crbug.com/840598): Switch to /data when minfs supports
32 DLOG(WARNING) << "Using /tmp as app data dir, changes will NOT be "
33 "persisted! (crbug.com/840598)";
34 *result = FilePath("/tmp");
37 *result = FilePath("/data");
41 *result = GetPackageRoot();