Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 397853002: Refactor safe-browsing build-config definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to pick up safe_browsing_resource_throttle_factory change. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.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/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 io_data_->http_server_properties_manager_ = 315 io_data_->http_server_properties_manager_ =
316 chrome_browser_net::HttpServerPropertiesManagerFactory::CreateManager( 316 chrome_browser_net::HttpServerPropertiesManagerFactory::CreateManager(
317 pref_service); 317 pref_service);
318 io_data_->set_http_server_properties( 318 io_data_->set_http_server_properties(
319 scoped_ptr<net::HttpServerProperties>( 319 scoped_ptr<net::HttpServerProperties>(
320 io_data_->http_server_properties_manager_)); 320 io_data_->http_server_properties_manager_));
321 io_data_->session_startup_pref()->Init( 321 io_data_->session_startup_pref()->Init(
322 prefs::kRestoreOnStartup, pref_service); 322 prefs::kRestoreOnStartup, pref_service);
323 io_data_->session_startup_pref()->MoveToThread( 323 io_data_->session_startup_pref()->MoveToThread(
324 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 324 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
325 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) 325 #if defined(SAFE_BROWSING_SERVICE)
326 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, 326 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled,
327 pref_service); 327 pref_service);
328 io_data_->safe_browsing_enabled()->MoveToThread( 328 io_data_->safe_browsing_enabled()->MoveToThread(
329 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 329 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
330 #endif 330 #endif
331 #if defined(OS_ANDROID) || defined(OS_IOS) 331 #if defined(OS_ANDROID) || defined(OS_IOS)
332 io_data_->data_reduction_proxy_enabled()->Init( 332 io_data_->data_reduction_proxy_enabled()->Init(
333 data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service); 333 data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service);
334 io_data_->data_reduction_proxy_enabled()->MoveToThread( 334 io_data_->data_reduction_proxy_enabled()->MoveToThread(
335 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 335 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 const base::Closure& completion) { 751 const base::Closure& completion) {
752 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 752 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
753 DCHECK(initialized()); 753 DCHECK(initialized());
754 754
755 DCHECK(transport_security_state()); 755 DCHECK(transport_security_state());
756 // Completes synchronously. 756 // Completes synchronously.
757 transport_security_state()->DeleteAllDynamicDataSince(time); 757 transport_security_state()->DeleteAllDynamicDataSince(time);
758 DCHECK(http_server_properties_manager_); 758 DCHECK(http_server_properties_manager_);
759 http_server_properties_manager_->Clear(completion); 759 http_server_properties_manager_->Clear(completion);
760 } 760 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698