| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_impl.h" | 5 #include "chrome/browser/extensions/extension_system_impl.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 } | 408 } |
| 409 } | 409 } |
| 410 } | 410 } |
| 411 } | 411 } |
| 412 | 412 |
| 413 void ExtensionSystemImpl::Shared::Shutdown() { | 413 void ExtensionSystemImpl::Shared::Shutdown() { |
| 414 if (extension_warning_service_) { | 414 if (extension_warning_service_) { |
| 415 extension_warning_service_->RemoveObserver( | 415 extension_warning_service_->RemoveObserver( |
| 416 extension_warning_badge_service_.get()); | 416 extension_warning_badge_service_.get()); |
| 417 } | 417 } |
| 418 if (content_verifier_) | 418 if (content_verifier_.get()) |
| 419 content_verifier_->Shutdown(); | 419 content_verifier_->Shutdown(); |
| 420 if (extension_service_) | 420 if (extension_service_) |
| 421 extension_service_->Shutdown(); | 421 extension_service_->Shutdown(); |
| 422 } | 422 } |
| 423 | 423 |
| 424 StateStore* ExtensionSystemImpl::Shared::state_store() { | 424 StateStore* ExtensionSystemImpl::Shared::state_store() { |
| 425 return state_store_.get(); | 425 return state_store_.get(); |
| 426 } | 426 } |
| 427 | 427 |
| 428 StateStore* ExtensionSystemImpl::Shared::rules_store() { | 428 StateStore* ExtensionSystemImpl::Shared::rules_store() { |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 650 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
| 651 const std::string& extension_id, | 651 const std::string& extension_id, |
| 652 const UnloadedExtensionInfo::Reason reason) { | 652 const UnloadedExtensionInfo::Reason reason) { |
| 653 BrowserThread::PostTask( | 653 BrowserThread::PostTask( |
| 654 BrowserThread::IO, | 654 BrowserThread::IO, |
| 655 FROM_HERE, | 655 FROM_HERE, |
| 656 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); | 656 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); |
| 657 } | 657 } |
| 658 | 658 |
| 659 } // namespace extensions | 659 } // namespace extensions |
| OLD | NEW |