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

Unified Diff: components/data_use_measurement/core/data_use_network_delegate.cc

Issue 2534023002: Create a DataUseRecorder instance for each page load in Chrome. (Closed)
Patch Set: Remove debug logs Created 4 years, 1 month 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: components/data_use_measurement/core/data_use_network_delegate.cc
diff --git a/components/data_use_measurement/core/data_use_network_delegate.cc b/components/data_use_measurement/core/data_use_network_delegate.cc
index 5e80c1f0e4c5632fa09c52b578224ff6a886cb27..d4c5b284cab2339184b26ae73094dbc8257372f7 100644
--- a/components/data_use_measurement/core/data_use_network_delegate.cc
+++ b/components/data_use_measurement/core/data_use_network_delegate.cc
@@ -37,7 +37,6 @@ void DataUseNetworkDelegate::OnBeforeURLRequestInternal(
void DataUseNetworkDelegate::OnBeforeRedirectInternal(
net::URLRequest* request,
const GURL& new_location) {
- ascriber_->OnBeforeRedirect(request, new_location);
data_use_measurement_.OnBeforeRedirect(*request, new_location);
}
@@ -55,14 +54,14 @@ void DataUseNetworkDelegate::OnNetworkBytesSentInternal(
data_use_measurement_.OnNetworkBytesSent(*request, bytes_sent);
}
-void DataUseNetworkDelegate::OnURLRequestDestroyedInternal(
- net::URLRequest* request) {
- ascriber_->OnUrlRequestDestroyed(request);
-}
-
void DataUseNetworkDelegate::OnCompletedInternal(net::URLRequest* request,
bool started) {
data_use_measurement_.OnCompleted(*request, started);
}
+void DataUseNetworkDelegate::OnURLRequestDestroyedInternal(
+ net::URLRequest* request) {
+ ascriber_->OnUrlRequestDestroyed(request);
+}
+
} // namespace data_use_measurement

Powered by Google App Engine
This is Rietveld 408576698