Descriptionbase: Add AsBinary() function to Value API.
This function should simplify some constructions.
Instead of:
if (!value->IsType(Value::TYPE_BINARY))
return false;
BinaryValue* binary_value = static_cast<BinaryValue*>(value);
You can do:
BinaryValue* binary_value = value->AsBinary();
if (!binary_value)
return false;
BUG=None
TEST=base_unittests --gtest_filter=Values*
R=evan@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98266
Patch Set 1 : #
Total comments: 1
Messages
Total messages: 2 (0 generated)
|