offline_page_model_event_logger.cc 851 B

123456789101112131415161718192021
  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. #include "components/offline_pages/core/offline_page_model_event_logger.h"
  5. namespace offline_pages {
  6. void OfflinePageModelEventLogger::RecordPageSaved(const std::string& name_space,
  7. const std::string& url,
  8. int64_t offline_id) {
  9. std::string id_str = std::to_string(offline_id);
  10. RecordActivity(url + " is saved at " + name_space + " with id " + id_str);
  11. }
  12. void OfflinePageModelEventLogger::RecordPageDeleted(int64_t offline_id) {
  13. std::string id_str = std::to_string(offline_id);
  14. RecordActivity("Page with ID " + id_str + " has been deleted");
  15. }
  16. } // namespace offline_pages