| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/offline_pages/background/request_coordinator_event_logger.h
" | 5 #include "components/offline_pages/core/background/request_coordinator_event_log
ger.h" |
| 6 | 6 |
| 7 namespace offline_pages { | 7 namespace offline_pages { |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| 11 static std::string OfflinerRequestStatusToString( | 11 static std::string OfflinerRequestStatusToString( |
| 12 Offliner::RequestStatus request_status) { | 12 Offliner::RequestStatus request_status) { |
| 13 switch (request_status) { | 13 switch (request_status) { |
| 14 case Offliner::UNKNOWN: | 14 case Offliner::UNKNOWN: |
| 15 return "UNKNOWN"; | 15 return "UNKNOWN"; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 | 104 |
| 105 void RequestCoordinatorEventLogger::RecordUpdateRequestFailed( | 105 void RequestCoordinatorEventLogger::RecordUpdateRequestFailed( |
| 106 const std::string& name_space, | 106 const std::string& name_space, |
| 107 UpdateRequestResult result) { | 107 UpdateRequestResult result) { |
| 108 RecordActivity("Updating queued request for " + name_space + " failed - " + | 108 RecordActivity("Updating queued request for " + name_space + " failed - " + |
| 109 UpdateRequestResultToString(result)); | 109 UpdateRequestResultToString(result)); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace offline_pages | 112 } // namespace offline_pages |
| OLD | NEW |