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

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

Issue 491753003: Domain Reliability: Don't upload when metrics reporting is off. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Block uploads in uploader, not dispatcher 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 591
592 main_context->set_sdch_manager(sdch_manager_.get()); 592 main_context->set_sdch_manager(sdch_manager_.get());
593 593
594 // Create a media request context based on the main context, but using a 594 // Create a media request context based on the main context, but using a
595 // media cache. It shares the same job factory as the main context. 595 // media cache. It shares the same job factory as the main context.
596 StoragePartitionDescriptor details(profile_path_, false); 596 StoragePartitionDescriptor details(profile_path_, false);
597 media_request_context_.reset(InitializeMediaRequestContext(main_context, 597 media_request_context_.reset(InitializeMediaRequestContext(main_context,
598 details)); 598 details));
599 599
600 if (domain_reliability_monitor_) { 600 if (domain_reliability_monitor_) {
601 domain_reliability_monitor_->Init( 601 domain_reliability_monitor_->InitURLRequestContext(
602 main_context, 602 main_context,
603 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 603 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
604 domain_reliability_monitor_->AddBakedInConfigs(); 604 domain_reliability_monitor_->AddBakedInConfigs();
605 network_delegate()->set_domain_reliability_monitor( 605 network_delegate()->set_domain_reliability_monitor(
606 domain_reliability_monitor_.get()); 606 domain_reliability_monitor_.get());
607 } 607 }
608 608
609 lazy_params_.reset(); 609 lazy_params_.reset();
610 } 610 }
611 611
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 const base::Closure& completion) { 834 const base::Closure& completion) {
835 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 835 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
836 DCHECK(initialized()); 836 DCHECK(initialized());
837 837
838 DCHECK(transport_security_state()); 838 DCHECK(transport_security_state());
839 // Completes synchronously. 839 // Completes synchronously.
840 transport_security_state()->DeleteAllDynamicDataSince(time); 840 transport_security_state()->DeleteAllDynamicDataSince(time);
841 DCHECK(http_server_properties_manager_); 841 DCHECK(http_server_properties_manager_);
842 http_server_properties_manager_->Clear(completion); 842 http_server_properties_manager_->Clear(completion);
843 } 843 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698