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

Unified Diff: chromecast/base/chromecast_switches.h

Issue 1767603003: [chromecast] Add cast_shell --accept-resource-provider switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: use kSwitchValue{True,False} and fix DONOTSUBMIT comment Created 4 years, 9 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
Index: chromecast/base/chromecast_switches.h
diff --git a/chromecast/base/chromecast_switches.h b/chromecast/base/chromecast_switches.h
index 0d3094ab6d0bdba2b40a8cd81525d6dbf10acd79..8ef81b826fb1bbf066b6fe239a3b3ebf54d31274 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[];
+// Cast Receiver switches
+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 cast {
+
halliwell 2016/03/08 04:29:42 It should be 'chromecast' for consistency.
jyw 2016/03/08 22:40:51 Done.
+// Gets boolean value from switch |switch_string|.
+// --|switch_string| -> true
+// --|switch_string|="true" -> true
+// --|switch_string|="false" -> false
+// no switch named |switch_string| -> |default_value|
+bool GetSwitchValueBoolean(const std::string& switch_string,
+ const bool default_value);
+
+} // namespace cast
+
#endif // CHROMECAST_BASE_CHROMECAST_SWITCHES_H_

Powered by Google App Engine
This is Rietveld 408576698