| 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/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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() { | 245 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() { |
| 246 return management_policy_.get(); | 246 return management_policy_.get(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 UserScriptMaster* ExtensionSystemImpl::Shared::user_script_master() { | 249 UserScriptMaster* ExtensionSystemImpl::Shared::user_script_master() { |
| 250 return user_script_master_.get(); | 250 return user_script_master_.get(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 ExtensionInfoMap* ExtensionSystemImpl::Shared::info_map() { | 253 ExtensionInfoMap* ExtensionSystemImpl::Shared::info_map() { |
| 254 if (!extension_info_map_) | 254 if (!extension_info_map_.get()) |
| 255 extension_info_map_ = new ExtensionInfoMap(); | 255 extension_info_map_ = new ExtensionInfoMap(); |
| 256 return extension_info_map_.get(); | 256 return extension_info_map_.get(); |
| 257 } | 257 } |
| 258 | 258 |
| 259 LazyBackgroundTaskQueue* | 259 LazyBackgroundTaskQueue* |
| 260 ExtensionSystemImpl::Shared::lazy_background_task_queue() { | 260 ExtensionSystemImpl::Shared::lazy_background_task_queue() { |
| 261 return lazy_background_task_queue_.get(); | 261 return lazy_background_task_queue_.get(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 EventRouter* ExtensionSystemImpl::Shared::event_router() { | 264 EventRouter* ExtensionSystemImpl::Shared::event_router() { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 416 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
| 417 const std::string& extension_id, | 417 const std::string& extension_id, |
| 418 const extension_misc::UnloadedExtensionReason reason) { | 418 const extension_misc::UnloadedExtensionReason reason) { |
| 419 BrowserThread::PostTask( | 419 BrowserThread::PostTask( |
| 420 BrowserThread::IO, FROM_HERE, | 420 BrowserThread::IO, FROM_HERE, |
| 421 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), | 421 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), |
| 422 extension_id, reason)); | 422 extension_id, reason)); |
| 423 } | 423 } |
| 424 | 424 |
| 425 } // namespace extensions | 425 } // namespace extensions |
| OLD | NEW |