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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 state_store_.reset(new StateStore( | 96 state_store_.reset(new StateStore( |
97 profile_, | 97 profile_, |
98 profile_->GetPath().AppendASCII(ExtensionService::kStateStoreName))); | 98 profile_->GetPath().AppendASCII(ExtensionService::kStateStoreName))); |
99 | 99 |
100 shell_window_geometry_cache_.reset(new ShellWindowGeometryCache( | 100 shell_window_geometry_cache_.reset(new ShellWindowGeometryCache( |
101 profile_, state_store_.get())); | 101 profile_, state_store_.get())); |
102 | 102 |
103 blacklist_.reset(new Blacklist(extension_prefs_.get())); | 103 blacklist_.reset(new Blacklist(extension_prefs_.get())); |
104 | 104 |
105 standard_management_policy_provider_.reset( | 105 standard_management_policy_provider_.reset( |
106 new StandardManagementPolicyProvider(extension_prefs_.get(), | 106 new StandardManagementPolicyProvider(extension_prefs_.get())); |
107 blacklist_.get())); | |
108 } | 107 } |
109 | 108 |
110 void ExtensionSystemImpl::Shared::RegisterManagementPolicyProviders() { | 109 void ExtensionSystemImpl::Shared::RegisterManagementPolicyProviders() { |
111 DCHECK(standard_management_policy_provider_.get()); | 110 DCHECK(standard_management_policy_provider_.get()); |
112 management_policy_->RegisterProvider( | 111 management_policy_->RegisterProvider( |
113 standard_management_policy_provider_.get()); | 112 standard_management_policy_provider_.get()); |
114 } | 113 } |
115 | 114 |
116 void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) { | 115 void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) { |
117 const CommandLine* command_line = CommandLine::ForCurrentProcess(); | 116 const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 427 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
429 const std::string& extension_id, | 428 const std::string& extension_id, |
430 const extension_misc::UnloadedExtensionReason reason) { | 429 const extension_misc::UnloadedExtensionReason reason) { |
431 BrowserThread::PostTask( | 430 BrowserThread::PostTask( |
432 BrowserThread::IO, FROM_HERE, | 431 BrowserThread::IO, FROM_HERE, |
433 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), | 432 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), |
434 extension_id, reason)); | 433 extension_id, reason)); |
435 } | 434 } |
436 | 435 |
437 } // namespace extensions | 436 } // namespace extensions |
OLD | NEW |