mirror of
https://git.freebsd.org/ports.git
synced 2025-06-28 16:10:33 -04:00
Iridium is a free, open, and libre browser modification of the Chromium code base, with privacy being enhanced in several key areas. Automatic transmission of partial queries, keywords, metrics to central services is inhibited and only occurs with consent. WWW: https://iridiumbrowser.de/
53 lines
2.1 KiB
C++
53 lines
2.1 KiB
C++
--- chrome/common/chrome_paths.cc.orig 2017-04-19 19:06:30 UTC
|
|
+++ chrome/common/chrome_paths.cc
|
|
@@ -190,7 +190,7 @@ bool PathProvider(int key, base::FilePat
|
|
return false;
|
|
break;
|
|
case chrome::DIR_DEFAULT_DOWNLOADS_SAFE:
|
|
-#if defined(OS_WIN) || defined(OS_LINUX)
|
|
+#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD)
|
|
if (!GetUserDownloadsDirectorySafe(&cur))
|
|
return false;
|
|
break;
|
|
@@ -474,10 +474,12 @@ bool PathProvider(int key, base::FilePat
|
|
if (!base::PathExists(cur)) // We don't want to create this
|
|
return false;
|
|
break;
|
|
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD)
|
|
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
|
|
case chrome::DIR_POLICY_FILES: {
|
|
#if defined(GOOGLE_CHROME_BUILD)
|
|
cur = base::FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies"));
|
|
+#elif defined(OS_BSD)
|
|
+ cur = base::FilePath(FILE_PATH_LITERAL("/usr/local/etc/chrome/policies"));
|
|
#else
|
|
cur = base::FilePath(FILE_PATH_LITERAL("/etc/chromium/policies"));
|
|
#endif
|
|
@@ -528,7 +530,7 @@ bool PathProvider(int key, base::FilePat
|
|
#endif
|
|
break;
|
|
|
|
-#if defined(OS_LINUX) || defined(OS_MACOSX)
|
|
+#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD)
|
|
case chrome::DIR_NATIVE_MESSAGING:
|
|
#if defined(OS_MACOSX)
|
|
#if defined(GOOGLE_CHROME_BUILD)
|
|
@@ -542,6 +544,9 @@ bool PathProvider(int key, base::FilePat
|
|
#if defined(GOOGLE_CHROME_BUILD)
|
|
cur = base::FilePath(FILE_PATH_LITERAL(
|
|
"/etc/opt/chrome/native-messaging-hosts"));
|
|
+#elif defined(OS_BSD)
|
|
+ cur = base::FilePath(FILE_PATH_LITERAL(
|
|
+ "/usr/local/etc/chrome/native-messaging-hosts"));
|
|
#else
|
|
cur = base::FilePath(FILE_PATH_LITERAL(
|
|
"/etc/chromium/native-messaging-hosts"));
|
|
@@ -554,7 +559,7 @@ bool PathProvider(int key, base::FilePat
|
|
return false;
|
|
cur = cur.Append(FILE_PATH_LITERAL("NativeMessagingHosts"));
|
|
break;
|
|
-#endif // defined(OS_LINUX) || defined(OS_MACOSX)
|
|
+#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD)
|
|
#if !defined(OS_ANDROID)
|
|
case chrome::DIR_GLOBAL_GCM_STORE:
|
|
if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
|