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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_test_util.cc

Issue 2831233004: predictors: Add resource type to manifest. (Closed)
Patch Set: Created 3 years, 8 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: chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc b/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
index a6d10b9dc9499540392542072c4544d62671ff9c..1982e0a4af8a249f44bc0b31d9b27f047c2fbd63 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
@@ -54,9 +54,11 @@ void InitializeRedirectStat(RedirectStat* redirect,
void InitializePrecacheResource(precache::PrecacheResource* resource,
const std::string& url,
- double weight_ratio) {
+ double weight_ratio,
+ precache::PrecacheResource::Type type) {
resource->set_url(url);
resource->set_weight_ratio(weight_ratio);
+ resource->set_type(type);
}
void InitializeOriginStat(OriginStat* origin_stat,

Powered by Google App Engine
This is Rietveld 408576698