blob: 3e7c2a5aaaf84c1c40a6ea4dc87ee9c65f297d22 (
plain)
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
27
|
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/segmentation_platform/internal/dummy_segmentation_platform_service.h"
#include <string>
#include "base/threading/sequenced_task_runner_handle.h"
#include "components/segmentation_platform/public/segment_selection_result.h"
namespace segmentation_platform {
DummySegmentationPlatformService::DummySegmentationPlatformService() = default;
DummySegmentationPlatformService::~DummySegmentationPlatformService() = default;
void DummySegmentationPlatformService::GetSelectedSegment(
const std::string& segmentation_key,
SegmentSelectionCallback callback) {
base::SequencedTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::BindOnce(std::move(callback), SegmentSelectionResult()));
}
void DummySegmentationPlatformService::EnableMetrics(
bool signal_collection_allowed) {}
} // namespace segmentation_platform
|