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

Unified Diff: chrome/browser/safe_browsing/client_side_model_loader.cc

Issue 2665653002: Make ModelLoader to release URLFeatcher once fetching is done. (Closed)
Patch Set: remove unnecessary changes Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/client_side_model_loader.cc
diff --git a/chrome/browser/safe_browsing/client_side_model_loader.cc b/chrome/browser/safe_browsing/client_side_model_loader.cc
index 5519b4108b0cdf907a65ff6815bc52de9dc30a40..30e181a5c8fd0ba51def346b93e672925ba1e092 100644
--- a/chrome/browser/safe_browsing/client_side_model_loader.cc
+++ b/chrome/browser/safe_browsing/client_side_model_loader.cc
@@ -189,6 +189,9 @@ void ModelLoader::EndFetch(ClientModelStatus status, base::TimeDelta max_age) {
delay_ms = max_age.InMilliseconds();
}
+ // Reset |fetcher_| as it will be re-created on next fetch.
+ fetcher_.reset();
+
// Schedule the next model reload.
ScheduleFetch(delay_ms);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698