| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/browser/extension_registry.h" | 5 #include "extensions/browser/extension_registry.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "extensions/browser/extension_registry_factory.h" | 8 #include "extensions/browser/extension_registry_factory.h" |
| 9 #include "extensions/browser/extension_registry_observer.h" | 9 #include "extensions/browser/extension_registry_observer.h" |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 } | 144 } |
| 145 | 145 |
| 146 void ExtensionRegistry::SetDisabledModificationCallback( | 146 void ExtensionRegistry::SetDisabledModificationCallback( |
| 147 const ExtensionSet::ModificationCallback& callback) { | 147 const ExtensionSet::ModificationCallback& callback) { |
| 148 disabled_extensions_.set_modification_callback(callback); | 148 disabled_extensions_.set_modification_callback(callback); |
| 149 } | 149 } |
| 150 | 150 |
| 151 void ExtensionRegistry::Shutdown() { | 151 void ExtensionRegistry::Shutdown() { |
| 152 // Release references to all Extension objects in the sets. | 152 // Release references to all Extension objects in the sets. |
| 153 ClearAll(); | 153 ClearAll(); |
| 154 FOR_EACH_OBSERVER(ExtensionRegistryObserver, observers_, OnShutdown()); |
| 154 } | 155 } |
| 155 | 156 |
| 156 } // namespace extensions | 157 } // namespace extensions |
| OLD | NEW |