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

Unified Diff: chromecast/base/BUILD.gn

Issue 2282263002: [Chromecast] Set the cast_product_type to the correct value on Android. (Closed)
Patch Set: Implement slan@'s suggestions Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/BUILD.gn
diff --git a/chromecast/base/BUILD.gn b/chromecast/base/BUILD.gn
index b807ad8ed494df7e0cf340779ee659b51a2579f4..b22ffc3c7effc0a35decf196f0f267688fd185c2 100644
--- a/chromecast/base/BUILD.gn
+++ b/chromecast/base/BUILD.gn
@@ -13,10 +13,18 @@ if (is_android) {
declare_args() {
# Denotes the type of Cast product. This is #defined as CAST_PRODUCT_TYPE in
# version.h. This is an integer in the range [0-4].
- cast_product_type = 0
+ if (is_android) {
+ cast_product_type = 4
+ } else {
+ cast_product_type = 0
+ }
}
-assert(cast_product_type >= 0 && cast_product_type <= 4)
+if (is_android) {
+ assert(cast_product_type == 4)
+} else {
+ assert(cast_product_type >= 0 && cast_product_type <= 3)
+}
# GYP target: chromecast.gyp:cast_base
source_set("base") {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698