| 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 28 matching lines...) Expand all Loading... |
| 39 // | 39 // |
| 40 // ExtensionSystem | 40 // ExtensionSystem |
| 41 // | 41 // |
| 42 | 42 |
| 43 ExtensionSystem::ExtensionSystem() { | 43 ExtensionSystem::ExtensionSystem() { |
| 44 } | 44 } |
| 45 | 45 |
| 46 ExtensionSystem::~ExtensionSystem() { | 46 ExtensionSystem::~ExtensionSystem() { |
| 47 } | 47 } |
| 48 | 48 |
| 49 // static |
| 50 ExtensionSystem* ExtensionSystem::Get(Profile* profile) { |
| 51 return ExtensionSystemFactory::GetForProfile(profile); |
| 52 } |
| 53 |
| 49 // | 54 // |
| 50 // ExtensionSystemImpl::Shared | 55 // ExtensionSystemImpl::Shared |
| 51 // | 56 // |
| 52 | 57 |
| 53 ExtensionSystemImpl::Shared::Shared(Profile* profile) | 58 ExtensionSystemImpl::Shared::Shared(Profile* profile) |
| 54 : profile_(profile) { | 59 : profile_(profile) { |
| 55 } | 60 } |
| 56 | 61 |
| 57 ExtensionSystemImpl::Shared::~Shared() { | 62 ExtensionSystemImpl::Shared::~Shared() { |
| 58 } | 63 } |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 } | 287 } |
| 283 | 288 |
| 284 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 289 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
| 285 const std::string& extension_id, | 290 const std::string& extension_id, |
| 286 const extension_misc::UnloadedExtensionReason reason) { | 291 const extension_misc::UnloadedExtensionReason reason) { |
| 287 BrowserThread::PostTask( | 292 BrowserThread::PostTask( |
| 288 BrowserThread::IO, FROM_HERE, | 293 BrowserThread::IO, FROM_HERE, |
| 289 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), | 294 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), |
| 290 extension_id, reason)); | 295 extension_id, reason)); |
| 291 } | 296 } |
| OLD | NEW |