| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/offline_pages/offline_page_model_event_logger.h" | |
| 6 | |
| 7 namespace offline_pages { | |
| 8 | |
| 9 void OfflinePageModelEventLogger::RecordPageSaved(const std::string& name_space, | |
| 10 const std::string& url, | |
| 11 const std::string& id) { | |
| 12 RecordActivity(url + " is saved at " + name_space + " with id " + id); | |
| 13 } | |
| 14 | |
| 15 void OfflinePageModelEventLogger::RecordPageDeleted(const std::string& id) { | |
| 16 RecordActivity("Page with ID " + id + " has been deleted"); | |
| 17 } | |
| 18 | |
| 19 void OfflinePageModelEventLogger::RecordPageExpired(const std::string& id) { | |
| 20 RecordActivity("Page with ID " + id + " has been expired"); | |
| 21 } | |
| 22 | |
| 23 void OfflinePageModelEventLogger::RecordStoreClearError() { | |
| 24 RecordActivity("Offline store clear failed"); | |
| 25 } | |
| 26 | |
| 27 void OfflinePageModelEventLogger::RecordStoreCleared() { | |
| 28 RecordActivity("Offline store cleared"); | |
| 29 } | |
| 30 | |
| 31 void OfflinePageModelEventLogger::RecordStoreReloadError() { | |
| 32 RecordActivity("There was an error reloading the offline store"); | |
| 33 } | |
| 34 } // namespace offline_pages | |
| OLD | NEW |