scottmg | 1ab7aa8 | 2017-05-25 05:22:49 | [diff] [blame^] | 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. |
| 4 | |
| 5 | #include "base/base_paths.h" |
| 6 | |
| 7 | #include "base/files/file_path.h" |
| 8 | |
| 9 | namespace base { |
| 10 | |
| 11 | bool PathProviderFuchsia(int key, FilePath* result) { |
| 12 | switch (key) { |
| 13 | case FILE_EXE: |
| 14 | case FILE_MODULE: { |
| 15 | // TODO(fuchsia): There's no API to retrieve this on Fuchsia currently. |
| 16 | // See https://crbug.com/726124. |
| 17 | *result = FilePath("/system/chrome"); |
| 18 | return true; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | } // namespace base |