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

Unified Diff: chrome/browser/net/chrome_net_log.cc

Issue 2909016: DevTools & WebTiming : Migrate from PassiveLogCollector to dedicated LoadTimingObserver. (Closed)
Patch Set: Fixed tests. Created 10 years, 5 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 | « chrome/browser/net/chrome_net_log.h ('k') | chrome/browser/net/load_timing_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_net_log.cc
diff --git a/chrome/browser/net/chrome_net_log.cc b/chrome/browser/net/chrome_net_log.cc
index efe801fcab053405726ee4887e74aba123802c5a..a6965524824946385b07e7cb535f338826477edc 100644
--- a/chrome/browser/net/chrome_net_log.cc
+++ b/chrome/browser/net/chrome_net_log.cc
@@ -9,18 +9,22 @@
#include "base/logging.h"
#include "base/string_util.h"
#include "chrome/browser/chrome_thread.h"
+#include "chrome/browser/net/load_timing_observer.h"
#include "chrome/browser/net/passive_log_collector.h"
ChromeNetLog::ChromeNetLog()
: next_id_(1),
- passive_collector_(new PassiveLogCollector) {
+ passive_collector_(new PassiveLogCollector),
+ load_timing_observer_(new LoadTimingObserver) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
AddObserver(passive_collector_.get());
+ AddObserver(load_timing_observer_.get());
}
ChromeNetLog::~ChromeNetLog() {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
RemoveObserver(passive_collector_.get());
+ RemoveObserver(load_timing_observer_.get());
}
void ChromeNetLog::AddEntry(EventType type,
@@ -55,4 +59,3 @@ void ChromeNetLog::RemoveObserver(Observer* observer) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
observers_.RemoveObserver(observer);
}
-
« no previous file with comments | « chrome/browser/net/chrome_net_log.h ('k') | chrome/browser/net/load_timing_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698