| 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_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 Source<Profile>(profile_getter_->get()), | 114 Source<Profile>(profile_getter_->get()), |
| 115 Details<ChromeCookieDetails>(&cookie_details)); | 115 Details<ChromeCookieDetails>(&cookie_details)); |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 | 118 |
| 119 scoped_refptr<ProfileGetter> profile_getter_; | 119 scoped_refptr<ProfileGetter> profile_getter_; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace | 122 } // namespace |
| 123 | 123 |
| 124 // static |
| 124 void ProfileIOData::InitializeProfileParams(Profile* profile, | 125 void ProfileIOData::InitializeProfileParams(Profile* profile, |
| 125 ProfileParams* params) { | 126 ProfileParams* params) { |
| 126 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 127 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 127 PrefService* pref_service = profile->GetPrefs(); | 128 PrefService* pref_service = profile->GetPrefs(); |
| 128 | 129 |
| 129 params->is_incognito = profile->IsOffTheRecord(); | 130 params->is_incognito = profile->IsOffTheRecord(); |
| 130 params->clear_local_state_on_exit = | 131 params->clear_local_state_on_exit = |
| 131 pref_service->GetBoolean(prefs::kClearSiteDataOnExit); | 132 pref_service->GetBoolean(prefs::kClearSiteDataOnExit); |
| 132 | 133 |
| 133 params->appcache_service = profile->GetAppCacheService(); | 134 params->appcache_service = profile->GetAppCacheService(); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 context->set_transport_security_state( | 265 context->set_transport_security_state( |
| 265 profile_params.transport_security_state); | 266 profile_params.transport_security_state); |
| 266 context->set_ssl_config_service(profile_params.ssl_config_service); | 267 context->set_ssl_config_service(profile_params.ssl_config_service); |
| 267 context->set_database_tracker(profile_params.database_tracker); | 268 context->set_database_tracker(profile_params.database_tracker); |
| 268 context->set_appcache_service(profile_params.appcache_service); | 269 context->set_appcache_service(profile_params.appcache_service); |
| 269 context->set_blob_storage_context(profile_params.blob_storage_context); | 270 context->set_blob_storage_context(profile_params.blob_storage_context); |
| 270 context->set_file_system_context(profile_params.file_system_context); | 271 context->set_file_system_context(profile_params.file_system_context); |
| 271 context->set_extension_info_map(profile_params.extension_info_map); | 272 context->set_extension_info_map(profile_params.extension_info_map); |
| 272 context->set_prerender_manager(profile_params.prerender_manager); | 273 context->set_prerender_manager(profile_params.prerender_manager); |
| 273 } | 274 } |
| 275 |
| 276 void ProfileIOData::ShutdownOnUIThread() { |
| 277 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 278 enable_referrers_.Destroy(); |
| 279 } |
| OLD | NEW |