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

Unified Diff: content/browser/trace_subscriber_stdio.cc

Issue 7207005: Style fix for member variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
« no previous file with comments | « content/browser/trace_subscriber_stdio.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/trace_subscriber_stdio.cc
===================================================================
--- content/browser/trace_subscriber_stdio.cc (revision 90186)
+++ content/browser/trace_subscriber_stdio.cc (working copy)
@@ -8,10 +8,10 @@
TraceSubscriberStdio::TraceSubscriberStdio(const FilePath& path) {
LOG(INFO) << "Logging performance trace to file: " << path.value();
- m_file = file_util::OpenFile(path, "w+");
+ file_ = file_util::OpenFile(path, "w+");
if (IsValid()) {
// FIXME: the file format expects it to start with "[".
- fputc('[', m_file);
+ fputc('[', file_);
} else {
LOG(ERROR) << "Failed to open performance trace file: " << path.value();
}
@@ -22,15 +22,15 @@
}
bool TraceSubscriberStdio::IsValid() {
- return m_file && (0 == ferror(m_file));
+ return file_ && (0 == ferror(file_));
}
void TraceSubscriberStdio::OnEndTracingComplete() {
- if (m_file) {
+ if (file_) {
// FIXME: the file format expects it to end with "]".
- fputc(']', m_file);
- fclose(m_file);
- m_file = 0;
+ fputc(']', file_);
+ fclose(file_);
+ file_ = 0;
}
}
@@ -46,12 +46,12 @@
const char* data = json_events.data() + 1;
size_t size = json_events.size() - 2;
- size_t written = fwrite(data, 1, size, m_file);
+ size_t written = fwrite(data, 1, size, file_);
if (written != size) {
- LOG(ERROR) << "Error " << ferror(m_file) << " when writing to trace file";
- fclose(m_file);
- m_file = 0;
+ LOG(ERROR) << "Error " << ferror(file_) << " when writing to trace file";
+ fclose(file_);
+ file_ = 0;
} else {
- fputc(',', m_file);
+ fputc(',', file_);
}
}
« no previous file with comments | « content/browser/trace_subscriber_stdio.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698