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::RecordStoreClearError() { |
| 20 RecordActivity("Offline store clear failed"); |
| 21 } |
| 22 |
| 23 void OfflinePageModelEventLogger::RecordStoreCleared() { |
| 24 RecordActivity("Offline store cleared"); |
| 25 } |
| 26 |
| 27 void OfflinePageModelEventLogger::RecordStoreReloadError() { |
| 28 RecordActivity("There was an error reloading the offline store"); |
| 29 } |
| 30 } // namespace offline_pages |
OLD | NEW |