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

Side by Side Diff: chrome/browser/net/nqe/ui_network_quality_estimator_service.cc

Issue 2894863002: Rename TaskRunner::RunsTasksOnCurrentThread() in //net (Closed)
Patch Set: fixed build error Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/net/nqe/ui_network_quality_estimator_service.h" 5 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 181 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
182 weak_factory_.InvalidateWeakPtrs(); 182 weak_factory_.InvalidateWeakPtrs();
183 if (io_observer_) { 183 if (io_observer_) {
184 bool deleted = content::BrowserThread::DeleteSoon( 184 bool deleted = content::BrowserThread::DeleteSoon(
185 content::BrowserThread::IO, FROM_HERE, io_observer_.release()); 185 content::BrowserThread::IO, FROM_HERE, io_observer_.release());
186 DCHECK(deleted); 186 DCHECK(deleted);
187 // Silence unused variable warning in release builds. 187 // Silence unused variable warning in release builds.
188 (void)deleted; 188 (void)deleted;
189 } 189 }
190 if (prefs_manager_) { 190 if (prefs_manager_) {
191 prefs_manager_->ShutdownOnPrefThread(); 191 prefs_manager_->ShutdownOnPrefSequence();
192 bool deleted = content::BrowserThread::DeleteSoon( 192 bool deleted = content::BrowserThread::DeleteSoon(
193 content::BrowserThread::IO, FROM_HERE, prefs_manager_.release()); 193 content::BrowserThread::IO, FROM_HERE, prefs_manager_.release());
194 DCHECK(deleted); 194 DCHECK(deleted);
195 // Silence unused variable warning in release builds. 195 // Silence unused variable warning in release builds.
196 (void)deleted; 196 (void)deleted;
197 } 197 }
198 } 198 }
199 199
200 void UINetworkQualityEstimatorService::EffectiveConnectionTypeChanged( 200 void UINetworkQualityEstimatorService::EffectiveConnectionTypeChanged(
201 net::EffectiveConnectionType type) { 201 net::EffectiveConnectionType type) {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 std::map<net::nqe::internal::NetworkID, 342 std::map<net::nqe::internal::NetworkID,
343 net::nqe::internal::CachedNetworkQuality> 343 net::nqe::internal::CachedNetworkQuality>
344 UINetworkQualityEstimatorService::ForceReadPrefsForTesting() const { 344 UINetworkQualityEstimatorService::ForceReadPrefsForTesting() const {
345 if (!prefs_manager_) { 345 if (!prefs_manager_) {
346 return std::map<net::nqe::internal::NetworkID, 346 return std::map<net::nqe::internal::NetworkID,
347 net::nqe::internal::CachedNetworkQuality>(); 347 net::nqe::internal::CachedNetworkQuality>();
348 } 348 }
349 return prefs_manager_->ForceReadPrefsForTesting(); 349 return prefs_manager_->ForceReadPrefsForTesting();
350 } 350 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698