[Chromecast] Rename disable_display flag to is_cast_audio_only.
The disable_display flag is problematic in two ways: * It is not obviously Cast-specific from the name. * It is not named in the affirmative. Fix these two problems by renaming this flag to is_cast_audio_only. BUG=627641 Review-Url: https://codereview.chromium.org/2288283002 Cr-Original-Commit-Position: refs/heads/master@{#415941} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: a0671e41e14616132fcc8d2bde0c8349e15f334a
This commit is contained in:
Родитель
87f8ed6051
Коммит
7f01347a67
|
@ -11,7 +11,7 @@ declare_args() {
|
|||
is_chromecast = false
|
||||
|
||||
# Set this true for an audio-only Chromecast build.
|
||||
disable_display = false
|
||||
is_cast_audio_only = false
|
||||
}
|
||||
|
||||
# Note(slan): This arg depends on the value of is_chromecast, and thus must be
|
||||
|
@ -31,6 +31,6 @@ declare_args() {
|
|||
assert(is_linux || is_android || !is_chromecast,
|
||||
"Chromecast builds are not supported on $target_os")
|
||||
|
||||
# Assert that disable_display and is_cast_desktop_build are both false on a
|
||||
# Assert that is_cast_audio_only and is_cast_desktop_build are both false on a
|
||||
# non-Chromecast build.
|
||||
assert(is_chromecast || !(disable_display || is_cast_desktop_build))
|
||||
assert(is_chromecast || (!is_cast_audio_only && !is_cast_desktop_build))
|
||||
|
|
Загрузка…
Ссылка в новой задаче