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

Unified Diff: chrome/renderer/net/predictor_queue.cc

Issue 6674006: Coverity Fixlets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CID=6283,3909 Created 9 years, 9 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: chrome/renderer/net/predictor_queue.cc
diff --git a/chrome/renderer/net/predictor_queue.cc b/chrome/renderer/net/predictor_queue.cc
index 4f680baa2bd4c8c77ecb5eac1b540c5863db874c..35023efb4cbb2f63d8d89cc6891a2f188a1f9c78 100644
--- a/chrome/renderer/net/predictor_queue.cc
+++ b/chrome/renderer/net/predictor_queue.cc
@@ -22,6 +22,12 @@ DnsQueue::DnsQueue(BufferSize size)
DnsQueue::~DnsQueue(void) {
}
+void DnsQueue::Clear() {
+ size_ = 0;
+ readable_ = writeable_;
+ DCHECK(Validate());
Lei Zhang 2011/03/11 01:09:35 never put calls with side effects inside a DCHECK.
Sheridan Rawlins 2011/03/11 01:39:49 Validate is used in DCHECK elsewhere in the code (
+}
+
// Push takes an unterminated string plus its length.
// The string must not contain a null terminator.
// Exactly length chars are written, or nothing is written.

Powered by Google App Engine
This is Rietveld 408576698