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/net_benchmarking.h" | 5 #include "chrome/browser/net_benchmarking.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 ->http_transaction_factory() | 95 ->http_transaction_factory() |
96 ->GetCache() | 96 ->GetCache() |
97 ->CloseAllConnections(); | 97 ->CloseAllConnections(); |
98 callback.Run(); | 98 callback.Run(); |
99 } | 99 } |
100 | 100 |
101 void NetBenchmarking::ClearPredictorCache( | 101 void NetBenchmarking::ClearPredictorCache( |
102 const ClearPredictorCacheCallback& callback) { | 102 const ClearPredictorCacheCallback& callback) { |
103 BrowserThread::PostTaskAndReply( | 103 BrowserThread::PostTaskAndReply( |
104 BrowserThread::UI, FROM_HERE, | 104 BrowserThread::UI, FROM_HERE, |
105 base::Bind(&ClearPredictorCacheOnUIThread, profile_), callback); | 105 base::BindOnce(&ClearPredictorCacheOnUIThread, profile_), callback); |
106 } | 106 } |
OLD | NEW |