-
Notifications
You must be signed in to change notification settings - Fork 0
/
031.patch
26 lines (25 loc) · 1.23 KB
/
031.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/components/translate/core/browser/translate_ranker_impl.cc 2017-10-04 18:07:40.000000000 -0400
+++ b/components/translate/core/browser/translate_ranker_impl.cc.new 2017-10-08 19:36:54.503727317 -0400
@@ -144,11 +144,9 @@
ukm::UkmRecorder* ukm_recorder)
: ukm_recorder_(ukm_recorder),
is_logging_enabled_(false),
- is_query_enabled_(base::FeatureList::IsEnabled(kTranslateRankerQuery)),
- is_enforcement_enabled_(
- base::FeatureList::IsEnabled(kTranslateRankerEnforcement)),
- is_decision_override_enabled_(base::FeatureList::IsEnabled(
- translate::kTranslateRankerDecisionOverride)),
+ is_query_enabled_(false),
+ is_enforcement_enabled_(false),
+ is_decision_override_enabled_(false),
weak_ptr_factory_(this) {
if (is_query_enabled_ || is_enforcement_enabled_) {
model_loader_ = base::MakeUnique<machine_intelligence::RankerModelLoader>(
@@ -222,6 +220,8 @@
// (or become False).
const bool kDefaultResponse = true;
+ return kDefaultResponse;
+
translate_event->set_ranker_request_timestamp_sec(
(base::TimeTicks::Now() - base::TimeTicks()).InSeconds());
translate_event->set_ranker_version(GetModelVersion());