summaryrefslogtreecommitdiffstats
path: root/net/sdch
diff options
context:
space:
mode:
authorrdsmith <rdsmith@chromium.org>2015-02-24 12:02:26 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-24 20:03:17 +0000
commit78434903058381a318738e0e9c0f3a165da62994 (patch)
tree97a90d3ba03796cd52454a4572e242ad89f2587f /net/sdch
parentc7b816b0c5bdfa63503cb4f2c019cc7eca677b4b (diff)
downloadchromium_src-78434903058381a318738e0e9c0f3a165da62994.zip
chromium_src-78434903058381a318738e0e9c0f3a165da62994.tar.gz
chromium_src-78434903058381a318738e0e9c0f3a165da62994.tar.bz2
Pin request_url in stack for more info on tracking crasher.
BUG=454198 R=mmenke@chromium.org Review URL: https://codereview.chromium.org/947313002 Cr-Commit-Position: refs/heads/master@{#317862}
Diffstat (limited to 'net/sdch')
-rw-r--r--net/sdch/sdch_owner.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sdch/sdch_owner.cc b/net/sdch/sdch_owner.cc
index 49e65d1..7426c94 100644
--- a/net/sdch/sdch_owner.cc
+++ b/net/sdch/sdch_owner.cc
@@ -5,7 +5,9 @@
#include "net/sdch/sdch_owner.h"
#include "base/bind.h"
+#include "base/debug/alias.h"
#include "base/metrics/histogram_macros.h"
+#include "base/strings/string_util.h"
#include "base/time/default_clock.h"
#include "net/base/sdch_manager.h"
#include "net/base/sdch_net_log_params.h"
@@ -250,6 +252,12 @@ void SdchOwner::OnGetDictionary(net::SdchManager* manager,
const GURL& dictionary_url) {
#if defined(OS_CHROMEOS)
// For debugging http://crbug.com/454198; remove when resolved.
+ char url_buf[128];
+ if (0u != destroyed_ || !clock_.get()) {
+ base::strlcpy(url_buf, request_url.spec().c_str(), arraysize(url_buf));
+ }
+ base::debug::Alias(url_buf);
+
CHECK_EQ(0u, destroyed_);
CHECK(clock_.get());
#endif