Chromium Code Reviews| Index: chromecast/base/chromecast_switches.h |
| diff --git a/chromecast/base/chromecast_switches.h b/chromecast/base/chromecast_switches.h |
| index 0d3094ab6d0bdba2b40a8cd81525d6dbf10acd79..a784312484944093ece6cd77756c8fdbc867f814 100644 |
| --- a/chromecast/base/chromecast_switches.h |
| +++ b/chromecast/base/chromecast_switches.h |
| @@ -5,6 +5,8 @@ |
| #ifndef CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| #define CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |
| +#include <string> |
| + |
| #include "build/build_config.h" |
| namespace switches { |
| @@ -29,6 +31,9 @@ extern const char kAllowHiddenMediaPlayback[]; |
| extern const char kLastLaunchedApp[]; |
| extern const char kPreviousApp[]; |
| +// DONOTSUBMIT what kind of switch is this |
|
halliwell
2016/03/05 01:01:51
DONOTSUBMIT :)
jyw
2016/03/08 02:09:24
Done.
|
| +extern const char kAcceptResourceProvider[]; |
| + |
| // ALSA-based CMA switches. (Only valid for audio products.) |
| extern const char kAlsaOutputBufferSize[]; |
| extern const char kAlsaOutputPeriodSize[]; |
| @@ -39,4 +44,16 @@ extern const char kAlsaNumOutputChannels[]; |
| } // namespace switches |
| +namespace base { |
|
halliwell
2016/03/05 01:01:51
I don't think we should be putting code in chromec
jyw
2016/03/08 02:09:24
Done.
|
| + |
| +// Gets boolean value from switch |switch_string|. Returns true if value |
| +// is present and is not "false". Returns false otherwise. |
| +bool GetSwitchValueBoolean(const std::string& switch_string); |
| + |
| +// Gets whether the switch |switch_string| is explicitly set to "false" for |
| +// the current process. |
| +bool IsSwitchExplicitFalse(const std::string& switch_string); |
| + |
| +} // namespace base |
| + |
| #endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_ |