OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/safe_browsing/download_feedback_service.h" | 5 #include "chrome/browser/safe_browsing/download_feedback_service.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 ping_request, ping_response)); | 193 ping_request, ping_response)); |
194 active_feedback_.push(std::move(feedback)); | 194 active_feedback_.push(std::move(feedback)); |
195 UMA_HISTOGRAM_COUNTS_100("SBDownloadFeedback.ActiveFeedbacks", | 195 UMA_HISTOGRAM_COUNTS_100("SBDownloadFeedback.ActiveFeedbacks", |
196 active_feedback_.size()); | 196 active_feedback_.size()); |
197 | 197 |
198 if (active_feedback_.size() == 1) | 198 if (active_feedback_.size() == 1) |
199 StartPendingFeedback(); | 199 StartPendingFeedback(); |
200 } | 200 } |
201 | 201 |
202 void DownloadFeedbackService::FeedbackComplete() { | 202 void DownloadFeedbackService::FeedbackComplete() { |
203 DVLOG(1) << __FUNCTION__; | 203 DVLOG(1) << __func__; |
204 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 204 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
205 DCHECK(!active_feedback_.empty()); | 205 DCHECK(!active_feedback_.empty()); |
206 active_feedback_.pop(); | 206 active_feedback_.pop(); |
207 if (!active_feedback_.empty()) | 207 if (!active_feedback_.empty()) |
208 StartPendingFeedback(); | 208 StartPendingFeedback(); |
209 } | 209 } |
210 | 210 |
211 } // namespace safe_browsing | 211 } // namespace safe_browsing |
OLD | NEW |