| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/profiles/profile_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 BrowserThread::PostTask( | 986 BrowserThread::PostTask( |
| 987 BrowserThread::IO, FROM_HERE, | 987 BrowserThread::IO, FROM_HERE, |
| 988 NewRunnableMethod(extension_info_map_.get(), | 988 NewRunnableMethod(extension_info_map_.get(), |
| 989 &ExtensionInfoMap::AddExtension, | 989 &ExtensionInfoMap::AddExtension, |
| 990 make_scoped_refptr(extension), | 990 make_scoped_refptr(extension), |
| 991 install_time, incognito_enabled)); | 991 install_time, incognito_enabled)); |
| 992 } | 992 } |
| 993 | 993 |
| 994 void ProfileImpl::UnregisterExtensionWithRequestContexts( | 994 void ProfileImpl::UnregisterExtensionWithRequestContexts( |
| 995 const std::string& extension_id, | 995 const std::string& extension_id, |
| 996 const UnloadedExtensionInfo::Reason reason) { | 996 const extension_misc::UnloadedExtensionReason reason) { |
| 997 BrowserThread::PostTask( | 997 BrowserThread::PostTask( |
| 998 BrowserThread::IO, FROM_HERE, | 998 BrowserThread::IO, FROM_HERE, |
| 999 NewRunnableMethod(extension_info_map_.get(), | 999 NewRunnableMethod(extension_info_map_.get(), |
| 1000 &ExtensionInfoMap::RemoveExtension, | 1000 &ExtensionInfoMap::RemoveExtension, |
| 1001 extension_id, | 1001 extension_id, |
| 1002 reason)); | 1002 reason)); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 net::SSLConfigService* ProfileImpl::GetSSLConfigService() { | 1005 net::SSLConfigService* ProfileImpl::GetSSLConfigService() { |
| 1006 return ssl_config_service_manager_->Get(); | 1006 return ssl_config_service_manager_->Get(); |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1723 #endif | 1723 #endif |
| 1724 } | 1724 } |
| 1725 return prerender_manager_.get(); | 1725 return prerender_manager_.get(); |
| 1726 } | 1726 } |
| 1727 | 1727 |
| 1728 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { | 1728 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { |
| 1729 if (!spellcheck_profile_.get()) | 1729 if (!spellcheck_profile_.get()) |
| 1730 spellcheck_profile_.reset(new SpellCheckProfile()); | 1730 spellcheck_profile_.reset(new SpellCheckProfile()); |
| 1731 return spellcheck_profile_.get(); | 1731 return spellcheck_profile_.get(); |
| 1732 } | 1732 } |
| OLD | NEW |