#include "components/browsing_topics/candidate_topic.h"
namespace browsing_topics {
CandidateTopic CandidateTopic::Create(Topic topic,
bool is_true_topic,
bool should_be_filtered,
int config_version,
int taxonomy_version,
int64_t model_version) {
DCHECK_NE(topic, Topic(0));
return CandidateTopic(topic, is_true_topic, should_be_filtered,
config_version, taxonomy_version, model_version);
}
CandidateTopic CandidateTopic::CreateInvalid() {
return CandidateTopic(Topic(0), false,
false,
0,
0,
0);
}
CandidateTopic::CandidateTopic(Topic topic,
bool is_true_topic,
bool should_be_filtered,
int config_version,
int taxonomy_version,
int64_t model_version)
: topic_(topic),
is_true_topic_(is_true_topic),
should_be_filtered_(should_be_filtered),
config_version_(config_version),
taxonomy_version_(taxonomy_version),
model_version_(model_version) {}
}