| Index: ui/base/resource/resource_bundle.cc
|
| diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
|
| index 755307c6ff2d3f234819b9efe942d03e9871c333..2d18cc1512a7cfc14f377c6f1670a2be26039db0 100644
|
| --- a/ui/base/resource/resource_bundle.cc
|
| +++ b/ui/base/resource/resource_bundle.cc
|
| @@ -663,6 +663,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()) >
|
|
|