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

Unified Diff: base/path_service.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_posix.cc ('k') | base/path_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
+#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
« no previous file with comments | « base/base_paths_posix.cc ('k') | base/path_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698