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

Unified Diff: base/event_recorder.h

Issue 5009: Fix some issues found looking at the code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: base/event_recorder.h
===================================================================
--- base/event_recorder.h (revision 2670)
+++ base/event_recorder.h (working copy)
@@ -37,7 +37,7 @@
// Starts recording events.
// Will clobber the file if it already exists.
// Returns true on success, or false if an error occurred.
- bool StartRecording(std::wstring &filename);
+ bool StartRecording(const std::wstring& filename);
// Stops recording.
void StopRecording();
@@ -47,7 +47,7 @@
// Plays events previously recorded.
// Returns true on success, or false if an error occurred.
- bool StartPlayback(std::wstring &filename);
+ bool StartPlayback(const std::wstring& filename);
// Stops playback.
void StopPlayback();
@@ -68,7 +68,9 @@
: is_recording_(false),
is_playing_(false),
journal_hook_(NULL),
- file_(NULL) {
+ file_(NULL),
+ playback_first_msg_time_(0),
+ playback_start_time_(0) {
}
~EventRecorder();
@@ -88,4 +90,3 @@
} // namespace base
#endif // BASE_EVENT_RECORDER_H_
-

Powered by Google App Engine
This is Rietveld 408576698