Drop the DCHECK for language size 3

Language tags can have subtags, such as "por-BR".  While the base tag
should be 3 characters, the entire tag can be longer.  Rather than
parse out the base tag and check that it is size 3 without the subtag,
we can just trust the ISO tag converter to do the right thing.

Change-Id: I2a186b5c8db0f373ee82ef68245ecc33cb068581
This commit is contained in:
Joey Parrish 2016-09-28 14:55:19 -07:00
parent 275e60e5a9
commit 07c4b4f3bd
1 changed files with 0 additions and 1 deletions

View File

@ -117,7 +117,6 @@ bool InsertStreamDescriptor(const std::string& descriptor_string,
LOG(ERROR) << "Unknown/invalid language specified: " << iter->second;
return false;
}
DCHECK_EQ(3u, language.size());
descriptor.language = language;
break;
}