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

Side by Side Diff: chrome/browser/safe_browsing/download_feedback.cc

Issue 2161193003: Use __func__ instead of __FUNCTION__. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 4 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
OLDNEW
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.h" 5 #include "chrome/browser/safe_browsing/download_feedback.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_util_proxy.h" 8 #include "base/files/file_util_proxy.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 finish_callback)); 137 finish_callback));
138 uploader_->Start(); 138 uploader_->Start();
139 } 139 }
140 140
141 void DownloadFeedbackImpl::FinishedUpload(base::Closure finish_callback, 141 void DownloadFeedbackImpl::FinishedUpload(base::Closure finish_callback,
142 TwoPhaseUploader::State state, 142 TwoPhaseUploader::State state,
143 int net_error, 143 int net_error,
144 int response_code, 144 int response_code,
145 const std::string& response_data) { 145 const std::string& response_data) {
146 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 146 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
147 DVLOG(1) << __FUNCTION__ << " " << state << " rlen=" << response_data.size(); 147 DVLOG(1) << __func__ << " " << state << " rlen=" << response_data.size();
148 148
149 switch (state) { 149 switch (state) {
150 case TwoPhaseUploader::STATE_SUCCESS: { 150 case TwoPhaseUploader::STATE_SUCCESS: {
151 ClientUploadResponse response; 151 ClientUploadResponse response;
152 if (!response.ParseFromString(response_data) || 152 if (!response.ParseFromString(response_data) ||
153 response.status() != ClientUploadResponse::SUCCESS) { 153 response.status() != ClientUploadResponse::SUCCESS) {
154 RecordUploadResult(UPLOAD_COMPLETE_RESPONSE_ERROR); 154 RecordUploadResult(UPLOAD_COMPLETE_RESPONSE_ERROR);
155 } else { 155 } else {
156 RecordUploadResult(UPLOAD_SUCCESS); 156 RecordUploadResult(UPLOAD_SUCCESS);
157 } 157 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 new DownloadFeedbackImpl(request_context_getter, file_task_runner, 212 new DownloadFeedbackImpl(request_context_getter, file_task_runner,
213 file_path, ping_request, ping_response)); 213 file_path, ping_request, ping_response));
214 } 214 }
215 return DownloadFeedback::factory_->CreateDownloadFeedback( 215 return DownloadFeedback::factory_->CreateDownloadFeedback(
216 request_context_getter, file_task_runner, file_path, ping_request, 216 request_context_getter, file_task_runner, file_path, ping_request,
217 ping_response); 217 ping_response);
218 } 218 }
219 219
220 } // namespace safe_browsing 220 } // namespace safe_browsing
221 221
OLDNEW
« no previous file with comments | « chrome/browser/platform_util_win.cc ('k') | chrome/browser/safe_browsing/download_feedback_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698