| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 profile_->GetPath().AppendASCII(ExtensionService::kInstallDirectoryName), | 85 profile_->GetPath().AppendASCII(ExtensionService::kInstallDirectoryName), |
| 86 ExtensionPrefValueMapFactory::GetForProfile(profile_))); | 86 ExtensionPrefValueMapFactory::GetForProfile(profile_))); |
| 87 extension_prefs_->Init(extensions_disabled); | 87 extension_prefs_->Init(extensions_disabled); |
| 88 | 88 |
| 89 state_store_.reset(new StateStore( | 89 state_store_.reset(new StateStore( |
| 90 profile_, | 90 profile_, |
| 91 profile_->GetPath().AppendASCII(ExtensionService::kStateStoreName))); | 91 profile_->GetPath().AppendASCII(ExtensionService::kStateStoreName))); |
| 92 | 92 |
| 93 shell_window_geometry_cache_.reset(new ShellWindowGeometryCache( | 93 shell_window_geometry_cache_.reset(new ShellWindowGeometryCache( |
| 94 profile_, state_store_.get())); | 94 profile_, state_store_.get())); |
| 95 | |
| 96 } | 95 } |
| 97 | 96 |
| 98 void ExtensionSystemImpl::Shared::RegisterManagementPolicyProviders() { | 97 void ExtensionSystemImpl::Shared::RegisterManagementPolicyProviders() { |
| 99 DCHECK(extension_prefs_.get()); | 98 DCHECK(extension_prefs_.get()); |
| 100 management_policy_->RegisterProvider(extension_prefs_.get()); | 99 management_policy_->RegisterProvider(extension_prefs_.get()); |
| 101 } | 100 } |
| 102 | 101 |
| 103 void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) { | 102 void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) { |
| 104 const CommandLine* command_line = CommandLine::ForCurrentProcess(); | 103 const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 105 | 104 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 393 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
| 395 const std::string& extension_id, | 394 const std::string& extension_id, |
| 396 const extension_misc::UnloadedExtensionReason reason) { | 395 const extension_misc::UnloadedExtensionReason reason) { |
| 397 BrowserThread::PostTask( | 396 BrowserThread::PostTask( |
| 398 BrowserThread::IO, FROM_HERE, | 397 BrowserThread::IO, FROM_HERE, |
| 399 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), | 398 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), |
| 400 extension_id, reason)); | 399 extension_id, reason)); |
| 401 } | 400 } |
| 402 | 401 |
| 403 } // namespace extensions | 402 } // namespace extensions |
| OLD | NEW |