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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
index cf10444a3bc69c717846123f823af429e3324ce0..5d7f8fe2cb1f5212fe0cb56fc657a5a0cb07b19b 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
@@ -845,7 +845,8 @@ TEST_F(DataReductionProxyConfigTest, LoFiOn) {
net::TestDelegate delegate_;
std::unique_ptr<net::URLRequest> request =
context_.CreateRequest(GURL(), net::IDLE, &delegate_);
- request->SetLoadFlags(request->load_flags() | net::LOAD_MAIN_FRAME);
+ request->SetLoadFlags(request->load_flags() |
+ net::LOAD_MAIN_FRAME_DEPRECATED);
bool should_enable_lofi = config()->ShouldEnableLoFiMode(*request.get());
if (tests[i].expect_bucket_count != 0) {
histogram_tester.ExpectBucketCount(

Powered by Google App Engine
This is Rietveld 408576698