Lines 10-16
Link Here
|
10 |
// New headless mode is available on Linux, Windows and Mac platforms. |
10 |
// New headless mode is available on Linux, Windows and Mac platforms. |
11 |
// More platforms will be added later, so avoid function level clutter |
11 |
// More platforms will be added later, so avoid function level clutter |
12 |
// by providing stub implementations at the end of the file. |
12 |
// by providing stub implementations at the end of the file. |
13 |
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) |
13 |
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) |
14 |
|
14 |
|
15 |
#include "base/base_switches.h" |
15 |
#include "base/base_switches.h" |
16 |
#include "base/files/file_path.h" |
16 |
#include "base/files/file_path.h" |
Lines 19-25
Link Here
|
19 |
#include "chrome/common/chrome_switches.h" |
19 |
#include "chrome/common/chrome_switches.h" |
20 |
#include "content/public/common/content_switches.h" |
20 |
#include "content/public/common/content_switches.h" |
21 |
|
21 |
|
22 |
#if BUILDFLAG(IS_LINUX) |
22 |
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) |
23 |
#include "ui/gl/gl_switches.h" // nogncheck |
23 |
#include "ui/gl/gl_switches.h" // nogncheck |
24 |
#include "ui/ozone/public/ozone_switches.h" // nogncheck |
24 |
#include "ui/ozone/public/ozone_switches.h" // nogncheck |
25 |
#endif // BUILDFLAG(IS_LINUX) |
25 |
#endif // BUILDFLAG(IS_LINUX) |
Lines 87-93
Link Here
|
87 |
command_line->AppendSwitchPath(switches::kUserDataDir, GetUserDataDir()); |
87 |
command_line->AppendSwitchPath(switches::kUserDataDir, GetUserDataDir()); |
88 |
} |
88 |
} |
89 |
|
89 |
|
90 |
#if BUILDFLAG(IS_LINUX) |
90 |
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) |
91 |
// Headless mode on Linux relies on ozone/headless platform. |
91 |
// Headless mode on Linux relies on ozone/headless platform. |
92 |
command_line->AppendSwitchASCII(::switches::kOzonePlatform, |
92 |
command_line->AppendSwitchASCII(::switches::kOzonePlatform, |
93 |
switches::kHeadless); |
93 |
switches::kHeadless); |