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/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/bind.h" | 10 #include "base/bind.h" |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 clear_local_state_on_exit_.Destroy(); | 540 clear_local_state_on_exit_.Destroy(); |
541 safe_browsing_enabled_.Destroy(); | 541 safe_browsing_enabled_.Destroy(); |
542 #if defined(ENABLE_CONFIGURATION_POLICY) | 542 #if defined(ENABLE_CONFIGURATION_POLICY) |
543 if (url_blacklist_manager_.get()) | 543 if (url_blacklist_manager_.get()) |
544 url_blacklist_manager_->ShutdownOnUIThread(); | 544 url_blacklist_manager_->ShutdownOnUIThread(); |
545 #endif | 545 #endif |
546 BrowserThread::PostTask( | 546 BrowserThread::PostTask( |
547 BrowserThread::IO, FROM_HERE, | 547 BrowserThread::IO, FROM_HERE, |
548 base::Bind( | 548 base::Bind( |
549 &ResourceDispatcherHost::CancelRequestsForContext, | 549 &ResourceDispatcherHost::CancelRequestsForContext, |
550 base::Unretained(g_browser_process->resource_dispatcher_host()), | 550 base::Unretained(ResourceDispatcherHost::Get()), |
551 &resource_context_)); | 551 &resource_context_)); |
552 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 552 bool posted = BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |
553 if (!posted) | 553 if (!posted) |
554 delete this; | 554 delete this; |
555 } | 555 } |
556 | 556 |
557 void ProfileIOData::set_origin_bound_cert_service( | 557 void ProfileIOData::set_origin_bound_cert_service( |
558 net::OriginBoundCertService* origin_bound_cert_service) const { | 558 net::OriginBoundCertService* origin_bound_cert_service) const { |
559 origin_bound_cert_service_.reset(origin_bound_cert_service); | 559 origin_bound_cert_service_.reset(origin_bound_cert_service); |
560 } | 560 } |
OLD | NEW |