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

Unified Diff: chrome/browser/download/chrome_download_manager_delegate.cc

Issue 2161193003: Use __func__ instead of __FUNCTION__. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format hates WebKit style Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/chrome_download_manager_delegate.cc
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
index c3aa96086756d847e1c5d6509157a4893bb51e3e..df475c50efaeab433f4326eba1b4965c96635eff 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
@@ -312,7 +312,7 @@ bool ChromeDownloadManagerDelegate::IsDownloadReadyForCompletion(
// Begin the safe browsing download protection check.
DownloadProtectionService* service = GetDownloadProtectionService();
if (service) {
- DVLOG(2) << __FUNCTION__ << "() Start SB download check for download = "
+ DVLOG(2) << __func__ << "() Start SB download check for download = "
<< item->DebugString(false);
state = new SafeBrowsingState();
state->set_callback(internal_complete_callback);
@@ -333,7 +333,7 @@ bool ChromeDownloadManagerDelegate::IsDownloadReadyForCompletion(
(danger_type == content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS ||
danger_type ==
content::DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT)) {
- DVLOG(2) << __FUNCTION__
+ DVLOG(2) << __func__
<< "() SB service disabled. Marking download as DANGEROUS FILE";
item->OnContentCheckCompleted(
content::DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE);
@@ -643,7 +643,7 @@ void ChromeDownloadManagerDelegate::CheckDownloadUrl(
if (service) {
bool is_content_check_supported =
service->IsSupportedDownload(*download, suggested_path);
- DVLOG(2) << __FUNCTION__ << "() Start SB URL check for download = "
+ DVLOG(2) << __func__ << "() Start SB URL check for download = "
<< download->DebugString(false);
service->CheckDownloadUrl(*download,
base::Bind(&CheckDownloadUrlDone,
@@ -673,7 +673,7 @@ void ChromeDownloadManagerDelegate::CheckClientDownloadDone(
if (!item || (item->GetState() != DownloadItem::IN_PROGRESS))
return;
- DVLOG(2) << __FUNCTION__ << "() download = " << item->DebugString(false)
+ DVLOG(2) << __func__ << "() download = " << item->DebugString(false)
<< " verdict = " << result;
// We only mark the content as being dangerous if the download's safety state
// has not been set to DANGEROUS yet. We don't want to show two warnings.

Powered by Google App Engine
This is Rietveld 408576698