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

Unified Diff: net/socket/socket_test_util.cc

Issue 9585026: Add a source id to global NetLog entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Move friend declaration Created 8 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: net/socket/socket_test_util.cc
===================================================================
--- net/socket/socket_test_util.cc (revision 126703)
+++ net/socket/socket_test_util.cc (working copy)
@@ -636,7 +636,7 @@
MockClientSocket::MockClientSocket(net::NetLog* net_log)
: ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
connected_(false),
- net_log_(net::NetLog::Source(), net_log) {
+ net_log_(BoundNetLog::Make(net_log, net::NetLog::SOURCE_NONE)) {
eroman 2012/03/14 21:53:48 How do you envision the javascript side of things
mmenke 2012/03/14 22:25:23 For emitting global entries, they should generally
}
bool MockClientSocket::SetReceiveBufferSize(int32 size) {
@@ -1207,7 +1207,7 @@
need_read_data_(true),
pending_buf_(NULL),
pending_buf_len_(0),
- net_log_(net::NetLog::Source(), net_log),
+ net_log_(BoundNetLog::Make(net_log, net::NetLog::SOURCE_NONE)),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
DCHECK(data_);
data_->Reset();

Powered by Google App Engine
This is Rietveld 408576698