commit | 3cef0da241982a792ceacb51f8f229b82b4ff22d | [log] [tgz] |
---|---|---|
author | Axel Antoine <axantoine@google.com> | Tue Jul 09 23:33:48 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 09 23:33:48 2019 |
tree | beb9d985bedc7042663298b17169f21339445488 | |
parent | 984d85616d706d91199d641e6ce63b228e8c3687 [diff] |
Add PredictorFactory. The PredictorFactory contains all the predictors names and types constants. The factory proposes two static methods: 1. A method to get a PredictorType when passing a predictor name 2. A method to get a unique instance of a predictor when passing a PredictorType Each predictor now returns the constant stored in the factory when calling GetName() Bug: 981147 Change-Id: Ib1069b069d8eb4fb45313aa4b9fbddd49f8bf84e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1688283 Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org> Reviewed-by: Ella Ge <eirage@chromium.org> Commit-Queue: Axel Antoine <axantoine@google.com> Cr-Commit-Position: refs/heads/master@{#675857}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .