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

Unified Diff: chrome/common/metrics_helpers.cc

Issue 6273006: Added CHECK for buffer_ and xml_wrapper_ to be not NULL ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/metrics_helpers.cc
===================================================================
--- chrome/common/metrics_helpers.cc (revision 71223)
+++ chrome/common/metrics_helpers.cc (working copy)
@@ -52,7 +52,7 @@
buffer_(NULL),
writer_(NULL) {
buffer_ = xmlBufferCreate();
- DCHECK(buffer_);
+ CHECK(buffer_);
#if defined(OS_CHROMEOS)
writer_ = xmlNewTextWriterDoc(&doc_, /* compression */ 0);
@@ -151,6 +151,8 @@
int MetricsLogBase::GetEncodedLogSize() {
DCHECK(locked_);
+ CHECK(xml_wrapper_);
+ CHECK(xml_wrapper_->buffer());
return xml_wrapper_->buffer()->use;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698