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

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

Issue 2825693002: predictors: Prefetch resources from manifest. (Closed)
Patch Set: Add comment. 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 522e507b36dee1da2522f26f7978c71bf1909883..a6d10b9dc9499540392542072c4544d62671ff9c 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_test_util.cc
@@ -111,12 +111,9 @@ RedirectData CreateRedirectData(const std::string& primary_key,
return data;
}
-precache::PrecacheManifest CreateManifestData(uint64_t id) {
- precache::PrecacheManifestId* manifest_id =
- new precache::PrecacheManifestId();
- manifest_id->set_id(id);
+precache::PrecacheManifest CreateManifestData(int64_t id) {
precache::PrecacheManifest manifest;
- manifest.set_allocated_id(manifest_id);
+ manifest.mutable_id()->set_id(id);
return manifest;
}

Powered by Google App Engine
This is Rietveld 408576698