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

Unified Diff: content/common/net/url_fetcher_impl.cc

Issue 8416055: Convert some non-debug logging on content/common to debug logging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/common/mac/font_loader.mm ('k') | content/common/npobject_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/net/url_fetcher_impl.cc
===================================================================
--- content/common/net/url_fetcher_impl.cc (revision 107816)
+++ content/common/net/url_fetcher_impl.cc (working copy)
@@ -334,7 +334,7 @@
void URLFetcherImpl::Core::TempFileWriter::CreateTempFile() {
DCHECK(core_->io_message_loop_proxy_->BelongsToCurrentThread());
- CHECK(file_message_loop_proxy_.get());
+ DCHECK(file_message_loop_proxy_.get());
base::FileUtilProxy::CreateTemporary(
file_message_loop_proxy_,
0, // No additional file flags.
@@ -538,14 +538,14 @@
void URLFetcherImpl::Core::Start() {
DCHECK(delegate_loop_proxy_);
- CHECK(request_context_getter_) << "We need an URLRequestContext!";
+ DCHECK(request_context_getter_) << "We need an URLRequestContext!";
if (io_message_loop_proxy_) {
DCHECK_EQ(io_message_loop_proxy_,
request_context_getter_->GetIOMessageLoopProxy());
} else {
io_message_loop_proxy_ = request_context_getter_->GetIOMessageLoopProxy();
}
- CHECK(io_message_loop_proxy_.get()) << "We need an IO message loop proxy";
+ DCHECK(io_message_loop_proxy_.get()) << "We need an IO message loop proxy";
io_message_loop_proxy_->PostTask(
FROM_HERE, base::Bind(&Core::StartOnIOThread, this));
@@ -626,7 +626,7 @@
void URLFetcherImpl::Core::AppendChunkToUpload(const std::string& content,
bool is_last_chunk) {
DCHECK(delegate_loop_proxy_);
- CHECK(io_message_loop_proxy_.get());
+ DCHECK(io_message_loop_proxy_.get());
io_message_loop_proxy_->PostTask(
FROM_HERE,
base::Bind(&Core::CompleteAddingUploadDataChunk, this, content,
@@ -762,7 +762,7 @@
return;
}
- CHECK(request_context_getter_);
+ DCHECK(request_context_getter_);
DCHECK(!request_.get());
g_registry.Get().AddURLFetcherCore(this);
@@ -810,8 +810,8 @@
// If we are writing the response to a file, the only caller
// of this function should have created it and not written yet.
- CHECK(!temp_file_writer_.get() ||
- temp_file_writer_->total_bytes_written() == 0);
+ DCHECK(!temp_file_writer_.get() ||
+ temp_file_writer_->total_bytes_written() == 0);
request_->Start();
}
@@ -866,7 +866,7 @@
}
void URLFetcherImpl::Core::InformDelegateFetchIsComplete() {
- CHECK(delegate_loop_proxy_->BelongsToCurrentThread());
+ DCHECK(delegate_loop_proxy_->BelongsToCurrentThread());
if (delegate_) {
delegate_->OnURLFetchComplete(fetcher_);
}
« no previous file with comments | « content/common/mac/font_loader.mm ('k') | content/common/npobject_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698