1 // Copyright 2023 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/browsing_topics/annotator_noop.h"
7 namespace browsing_topics {
9 AnnotatorNoOp::AnnotatorNoOp() = default;
10 AnnotatorNoOp::~AnnotatorNoOp() = default;
12 void AnnotatorNoOp::BatchAnnotate(BatchAnnotationCallback callback,
13 const std::vector<std::string>& inputs) {
14 std::vector<Annotation> annotations;
15 annotations.reserve(inputs.size());
16 for (const std::string& input : inputs) {
17 annotations.push_back(Annotation(input));
19 std::move(callback).Run(annotations);
22 void AnnotatorNoOp::NotifyWhenModelAvailable(base::OnceClosure callback) {}
24 absl::optional<optimization_guide::ModelInfo>
25 AnnotatorNoOp::GetBrowsingTopicsModelInfo() const {
29 } // namespace browsing_topics