chromium/components/language_detection/core/language_detection_provider.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/language_detection//core/language_detection_provider.h"

#include "base/base_paths.h"
#include "base/files/file.h"
#include "base/metrics/field_trial_params.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "base/path_service.h"

namespace language_detection {

// Allows supplying a local model file. The file cannot be opened if we're in a
// sanbox. You can use --no-sandbox when running tests that rely on this flag.
// TODO(https://crbug.com/354069716): Move this to the model service in the
// browser.
BASE_FEATURE();
const base::FeatureParam<std::string> kLanguageDetectionModelForTestingPath{};

LanguageDetectionModel& GetLanguageDetectionModel() {}

}  // namespace language_detection