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

Unified Diff: components/translate/core/browser/translate_ranker_impl.cc

Issue 2956053003: Revert of [translate] Defer start of translate ranker model load to first use. (patchset #2 id:4000… (Closed)
Patch Set: Created 3 years, 6 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: components/translate/core/browser/translate_ranker_impl.cc
diff --git a/components/translate/core/browser/translate_ranker_impl.cc b/components/translate/core/browser/translate_ranker_impl.cc
index d31d4718adabaa73fe5df4a2129f83f5a374f213..e8cc5e3318f44d6fdbdc6d64577dd904a654985a 100644
--- a/components/translate/core/browser/translate_ranker_impl.cc
+++ b/components/translate/core/browser/translate_ranker_impl.cc
@@ -147,6 +147,8 @@ TranslateRankerImpl::TranslateRankerImpl(const base::FilePath& model_path,
base::Bind(&TranslateRankerImpl::OnModelAvailable,
weak_ptr_factory_.GetWeakPtr()),
model_path, model_url, kUmaPrefix);
+ // Kick off the initial load from cache.
+ model_loader_->NotifyOfRankerActivity();
}
}
« 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