| Index: tools/gn/bundle_file_rule.cc
|
| diff --git a/tools/gn/bundle_file_rule.cc b/tools/gn/bundle_file_rule.cc
|
| index 9f78667779dd87de3821d7d12240e5a23d6c4fdd..e23361fbc5843ef8407439b613f9145c64033ec7 100644
|
| --- a/tools/gn/bundle_file_rule.cc
|
| +++ b/tools/gn/bundle_file_rule.cc
|
| @@ -10,9 +10,13 @@
|
| #include "tools/gn/substitution_writer.h"
|
| #include "tools/gn/target.h"
|
|
|
| -BundleFileRule::BundleFileRule(const std::vector<SourceFile> sources,
|
| +BundleFileRule::BundleFileRule(const Target* bundle_data_target,
|
| + const std::vector<SourceFile> sources,
|
| const SubstitutionPattern& pattern)
|
| - : sources_(sources), pattern_(pattern) {}
|
| + : target_(bundle_data_target), sources_(sources), pattern_(pattern) {
|
| + // target_ may be null during testing.
|
| + DCHECK(!target_ || target_->output_type() == Target::BUNDLE_DATA);
|
| +}
|
|
|
| BundleFileRule::BundleFileRule(const BundleFileRule& other) = default;
|
|
|
|
|