OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/extension_system.h" | 5 #include "chrome/browser/extensions/extension_system.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/string_tokenizer.h" | 10 #include "base/string_tokenizer.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 if (!command_line->HasSwitch(switches::kImport) && | 184 if (!command_line->HasSwitch(switches::kImport) && |
185 !command_line->HasSwitch(switches::kImportFromFile)) { | 185 !command_line->HasSwitch(switches::kImportFromFile)) { |
186 if (g_browser_process->profile_manager()->will_import()) { | 186 if (g_browser_process->profile_manager()->will_import()) { |
187 extension_service_->InitEventRoutersAfterImport(); | 187 extension_service_->InitEventRoutersAfterImport(); |
188 } else { | 188 } else { |
189 extension_service_->InitEventRouters(); | 189 extension_service_->InitEventRouters(); |
190 } | 190 } |
191 } | 191 } |
192 } | 192 } |
193 | 193 |
| 194 void ExtensionSystemImpl::Shared::Shutdown() { |
| 195 if (extension_service_.get()) |
| 196 extension_service_->Shutdown(); |
| 197 } |
| 198 |
194 StateStore* ExtensionSystemImpl::Shared::state_store() { | 199 StateStore* ExtensionSystemImpl::Shared::state_store() { |
195 return state_store_.get(); | 200 return state_store_.get(); |
196 } | 201 } |
197 | 202 |
198 ExtensionService* ExtensionSystemImpl::Shared::extension_service() { | 203 ExtensionService* ExtensionSystemImpl::Shared::extension_service() { |
199 return extension_service_.get(); | 204 return extension_service_.get(); |
200 } | 205 } |
201 | 206 |
202 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() { | 207 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() { |
203 return management_policy_.get(); | 208 return management_policy_.get(); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 380 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
376 const std::string& extension_id, | 381 const std::string& extension_id, |
377 const extension_misc::UnloadedExtensionReason reason) { | 382 const extension_misc::UnloadedExtensionReason reason) { |
378 BrowserThread::PostTask( | 383 BrowserThread::PostTask( |
379 BrowserThread::IO, FROM_HERE, | 384 BrowserThread::IO, FROM_HERE, |
380 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), | 385 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), |
381 extension_id, reason)); | 386 extension_id, reason)); |
382 } | 387 } |
383 | 388 |
384 } // namespace extensions | 389 } // namespace extensions |
OLD | NEW |