Chromium Code Reviews| Index: base/path_service.cc |
| diff --git a/base/path_service.cc b/base/path_service.cc |
| index 97a0ce5c02c932be4acb46284c439ef7dd50eeec..3b9b69e17375813eb97b2ff0fa6bcf4e53d7f59e 100644 |
| --- a/base/path_service.cc |
| +++ b/base/path_service.cc |
| @@ -126,19 +126,9 @@ struct PathData { |
| providers = &base_provider_posix; |
| #endif |
| } |
| - |
| - ~PathData() { |
| - Provider* p = providers; |
| - while (p) { |
| - Provider* next = p->next; |
| - if (!p->is_static) |
| - delete p; |
| - p = next; |
| - } |
| - } |
| }; |
|
cpu_(ooo_6.6-7.5)
2015/12/03 20:41:08
go ahead and land this /base change in a separate
scottmg
2015/12/03 20:52:52
Done: https://codereview.chromium.org/1487213004
|
| -static LazyInstance<PathData> g_path_data = LAZY_INSTANCE_INITIALIZER; |
| +static LazyInstance<PathData>::Leaky g_path_data = LAZY_INSTANCE_INITIALIZER; |
| static PathData* GetPathData() { |
| return g_path_data.Pointer(); |