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

Side by Side Diff: components/offline_pages/offline_page_model_event_logger.cc

Issue 2089413002: [Offline Pages] Create a event/activity logger (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698