diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-11 00:08:39 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-11 00:08:39 +0000 |
commit | ddbbfe2acf8c482df256c99e23c59ff54aa70b5f (patch) | |
tree | 9c11af067725b039fb08c396ba1dcbb658ccc0fc /chrome/browser/net | |
parent | 7b88625e152025473240648993a8fa2d142093f9 (diff) | |
download | chromium_src-ddbbfe2acf8c482df256c99e23c59ff54aa70b5f.zip chromium_src-ddbbfe2acf8c482df256c99e23c59ff54aa70b5f.tar.gz chromium_src-ddbbfe2acf8c482df256c99e23c59ff54aa70b5f.tar.bz2 |
Make ChromeNetLog::HaListener() work under the new about:net-internals implementation.
Review URL: http://codereview.chromium.org/2036009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/chrome_net_log.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/net/chrome_net_log.cc b/chrome/browser/net/chrome_net_log.cc index b9c425d..34b9c12 100644 --- a/chrome/browser/net/chrome_net_log.cc +++ b/chrome/browser/net/chrome_net_log.cc @@ -42,8 +42,8 @@ uint32 ChromeNetLog::NextID() { bool ChromeNetLog::HasListener() const { DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); - // TODO(eroman): Hack to get refactor working. - return passive_collector_->url_request_tracker()->is_unbounded(); + // (Don't count the PassiveLogCollector observer). + return observers_.size() > 1; } void ChromeNetLog::AddObserver(Observer* observer) { |