Index: base/path_service.cc |
diff --git a/base/path_service.cc b/base/path_service.cc |
index 4715dfccb82c73749d6347afb8164720b80eb1e5..2caa3eaf0dbb68fa010e0598b236b91c293f681b 100644 |
--- a/base/path_service.cc |
+++ b/base/path_service.cc |
@@ -28,6 +28,8 @@ bool PathProviderWin(int key, FilePath* result); |
bool PathProviderMac(int key, FilePath* result); |
#elif defined(OS_ANDROID) |
bool PathProviderAndroid(int key, FilePath* result); |
+#elif defined(OS_FUCHSIA) |
+bool PathProviderFuchsia(int key, FilePath* result); |
#elif defined(OS_POSIX) |
// PathProviderPosix is the default path provider on POSIX OSes other than |
// Mac and Android. |
@@ -96,7 +98,16 @@ Provider base_provider_android = { |
}; |
#endif |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
+#if defined(OS_FUCHSIA) |
+Provider base_provider_fuchsia = {PathProviderFuchsia, &base_provider, |
+#ifndef NDEBUG |
+ 0, 0, |
Lei Zhang
2017/05/24 23:28:34
Do you want to actually reserve some number space
scottmg
2017/05/24 23:42:29
I only know of /system and /data at the moment. It
|
+#endif |
+ true}; |
+#endif |
+ |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ |
+ !defined(OS_FUCHSIA) |
Provider base_provider_posix = { |
PathProviderPosix, |
&base_provider, |
@@ -123,6 +134,8 @@ struct PathData { |
providers = &base_provider_mac; |
#elif defined(OS_ANDROID) |
providers = &base_provider_android; |
+#elif defined(OS_FUCHSIA) |
+ providers = &base_provider_fuchsia; |
#elif defined(OS_POSIX) |
providers = &base_provider_posix; |
#endif |