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

Unified Diff: components/offline_pages/background/request_coordinator_event_logger.cc

Issue 2209813002: [Offline Pages] Moves Coordinator to using MarkAttemptStarted/MarkAttemptCompleted API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot complaint for no return value on string mapping methods 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/background/request_coordinator_event_logger.cc
diff --git a/components/offline_pages/background/request_coordinator_event_logger.cc b/components/offline_pages/background/request_coordinator_event_logger.cc
index 12ddf8c2fa177fff27972655814cb4ddbb699400..7edd00dfe17f98021c620464aedfb3df9d0b5305 100644
--- a/components/offline_pages/background/request_coordinator_event_logger.cc
+++ b/components/offline_pages/background/request_coordinator_event_logger.cc
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <string>
-
#include "components/offline_pages/background/request_coordinator_event_logger.h"
namespace offline_pages {
@@ -17,4 +15,11 @@ void RequestCoordinatorEventLogger::RecordSavePageRequestUpdated(
" has been updated with status " + new_status);
}
+void RequestCoordinatorEventLogger::RecordUpdateRequestFailed(
+ const std::string& name_space,
+ const std::string& result) {
+ RecordActivity("Updating queued request for namespace: " + name_space +
+ " failed with result: " + result);
+}
+
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698