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

Side by Side Diff: components/domain_reliability/monitor.cc

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (Closed)
Patch Set: rebase Created 3 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/domain_reliability/monitor.h" 5 #include "components/domain_reliability/monitor.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 void DomainReliabilityMonitor::InitURLRequestContext( 146 void DomainReliabilityMonitor::InitURLRequestContext(
147 const scoped_refptr<net::URLRequestContextGetter>& 147 const scoped_refptr<net::URLRequestContextGetter>&
148 url_request_context_getter) { 148 url_request_context_getter) {
149 DCHECK(OnNetworkThread()); 149 DCHECK(OnNetworkThread());
150 DCHECK(moved_to_network_thread_); 150 DCHECK(moved_to_network_thread_);
151 151
152 // Make sure the URLRequestContext actually lives on what was declared to be 152 // Make sure the URLRequestContext actually lives on what was declared to be
153 // the network thread. 153 // the network thread.
154 DCHECK(url_request_context_getter->GetNetworkTaskRunner()-> 154 DCHECK(url_request_context_getter->GetNetworkTaskRunner()->
155 RunsTasksOnCurrentThread()); 155 RunsTasksInCurrentSequence());
156 156
157 uploader_ = DomainReliabilityUploader::Create(time_.get(), 157 uploader_ = DomainReliabilityUploader::Create(time_.get(),
158 url_request_context_getter); 158 url_request_context_getter);
159 } 159 }
160 160
161 void DomainReliabilityMonitor::Shutdown() { 161 void DomainReliabilityMonitor::Shutdown() {
162 uploader_->Shutdown(); 162 uploader_->Shutdown();
163 } 163 }
164 164
165 void DomainReliabilityMonitor::AddBakedInConfigs() { 165 void DomainReliabilityMonitor::AddBakedInConfigs() {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 break; 430 break;
431 } 431 }
432 } 432 }
433 433
434 base::WeakPtr<DomainReliabilityMonitor> 434 base::WeakPtr<DomainReliabilityMonitor>
435 DomainReliabilityMonitor::MakeWeakPtr() { 435 DomainReliabilityMonitor::MakeWeakPtr() {
436 return weak_factory_.GetWeakPtr(); 436 return weak_factory_.GetWeakPtr();
437 } 437 }
438 438
439 } // namespace domain_reliability 439 } // namespace domain_reliability
OLDNEW
« no previous file with comments | « components/device_event_log/device_event_log_impl.cc ('k') | components/drive/chromeos/file_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698