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

Unified Diff: components/offline_pages/core/offline_event_logger.cc

Issue 2562913002: [Offline Pages] Minor fix for log messages in event logger. (Closed)
Patch Set: fix test. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/offline_pages/core/offline_event_logger_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/core/offline_event_logger.cc
diff --git a/components/offline_pages/core/offline_event_logger.cc b/components/offline_pages/core/offline_event_logger.cc
index 0fb38f369ba1e3844a469bc5b959b05f378d75f9..09d2b7f90f549a29cc286da4bd633318c9c1109e 100644
--- a/components/offline_pages/core/offline_event_logger.cc
+++ b/components/offline_pages/core/offline_event_logger.cc
@@ -44,14 +44,13 @@ void OfflineEventLogger::RecordActivity(const std::string& activity) {
current_time.day_of_month, current_time.hour, current_time.minute,
current_time.second);
- std::string log_message = date_string + ": " + activity;
if (client_)
- client_->CustomLog(log_message);
+ client_->CustomLog(activity);
if (activities_.size() == kMaxLogCount)
activities_.pop_back();
- activities_.push_front(log_message);
+ activities_.push_front(date_string + ": " + activity);
}
void OfflineEventLogger::SetClient(Client* client) {
« no previous file with comments | « no previous file | components/offline_pages/core/offline_event_logger_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698