| Index: ui/base/ui_base_paths.cc
|
| diff --git a/ui/base/ui_base_paths.cc b/ui/base/ui_base_paths.cc
|
| index 083315d422833c6d7c59ef1d93fddc9ddb12f51e..4c39024fb282b266a2277193f6cc2cc2a3ec8c45 100644
|
| --- a/ui/base/ui_base_paths.cc
|
| +++ b/ui/base/ui_base_paths.cc
|
| @@ -79,7 +79,11 @@ bool PathProvider(int key, base::FilePath* result) {
|
| // This cannot be done as a static initializer sadly since Visual Studio will
|
| // eliminate this object file if there is no direct entry point into it.
|
| void RegisterPathProvider() {
|
| - PathService::RegisterProvider(PathProvider, PATH_START, PATH_END);
|
| + static bool registered = false;
|
| + if (!registered) {
|
| + PathService::RegisterProvider(PathProvider, PATH_START, PATH_END);
|
| + registered = true;
|
| + }
|
| }
|
|
|
| } // namespace ui
|
|
|