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

Unified Diff: net/http/http_network_transaction.cc

Issue 2278823003: Change net::LOAD_MAIN_FRAME to net::LOAD_MAIN_FRAME_DEPRECATED to discourage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added deprecation flag to two recent tests. Created 4 years, 4 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 | « net/http/http_cache_transaction.cc ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index b5db3d24cf5990eeefdef97c443915a790d01ea9..5b59a957dffd6e8a75380e960a5d4fca8a006ea6 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1191,7 +1191,7 @@ int HttpNetworkTransaction::DoReadHeadersComplete(int result) {
}
// Like Net.HttpResponseCode, but only for MAIN_FRAME loads.
- if (request_->load_flags & LOAD_MAIN_FRAME) {
+ if (request_->load_flags & LOAD_MAIN_FRAME_DEPRECATED) {
const int response_code = response_.headers->response_code();
UMA_HISTOGRAM_ENUMERATION(
"Net.HttpResponseCode_Nxx_MainFrame", response_code/100, 10);
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698