| Index: ui/base/resource/resource_bundle.cc
|
| diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
|
| index 665b580a6d7253274442a4860e13ab7c67db7a32..cdab26ef36c04c3aa68b3667c3e3c8b54ade5451 100644
|
| --- a/ui/base/resource/resource_bundle.cc
|
| +++ b/ui/base/resource/resource_bundle.cc
|
| @@ -662,6 +662,9 @@ void ResourceBundle::AddDataPackFromPathInternal(const base::FilePath& path,
|
| }
|
|
|
| void ResourceBundle::AddDataPack(DataPack* data_pack) {
|
| +#if DCHECK_IS_ON()
|
| + data_pack->CheckForDuplicateResources(data_packs_);
|
| +#endif
|
| data_packs_.push_back(data_pack);
|
|
|
| if (GetScaleForScaleFactor(data_pack->GetScaleFactor()) >
|
|
|