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

Unified Diff: components/offline_pages/background/request_coordinator.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, 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: components/offline_pages/background/request_coordinator.cc
diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc
index a78d58cbdcfe24663f5e444c1777d3ab4155c104..b590f7e36d5b4a89bb5a5157b20c49f2ad4d16b8 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -67,7 +67,7 @@ RequestCoordinator::~RequestCoordinator() {}
bool RequestCoordinator::SavePageLater(
const GURL& url, const ClientId& client_id, bool was_user_requested) {
- DVLOG(2) << "URL is " << url << " " << __FUNCTION__;
+ DVLOG(2) << "URL is " << url << " " << __func__;
// TODO(petewil): We need a robust scheme for allocating new IDs. We may need
// GUIDS for the downloads home design.
@@ -191,8 +191,8 @@ void RequestCoordinator::SendRequestToOffliner(const SavePageRequest& request) {
void RequestCoordinator::OfflinerDoneCallback(const SavePageRequest& request,
Offliner::RequestStatus status) {
DVLOG(2) << "offliner finished, saved: "
- << (status == Offliner::RequestStatus::SAVED) << ", status: "
- << (int) status << ", " << __FUNCTION__;
+ << (status == Offliner::RequestStatus::SAVED)
+ << ", status: " << static_cast<int>(status) << ", " << __func__;
DCHECK_NE(status, Offliner::RequestStatus::UNKNOWN);
DCHECK_NE(status, Offliner::RequestStatus::LOADED);
event_logger_.RecordSavePageRequestUpdated(

Powered by Google App Engine
This is Rietveld 408576698