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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
android_webview / browser / variations / aw_variations_service_client.cc [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "android_webview/browser/variations/aw_variations_service_client.h"
#include "components/version_info/android/channel_getter.h"
#include "components/version_info/version_info.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
using version_info::Channel;
namespace android_webview {
AwVariationsServiceClient::AwVariationsServiceClient() = default;
AwVariationsServiceClient::~AwVariationsServiceClient() = default;
base::Version AwVariationsServiceClient::GetVersionForSimulation() {
return version_info::GetVersion();
}
scoped_refptr<network::SharedURLLoaderFactory>
AwVariationsServiceClient::GetURLLoaderFactory() {
return nullptr;
}
network_time::NetworkTimeTracker*
AwVariationsServiceClient::GetNetworkTimeTracker() {
return nullptr;
}
Channel AwVariationsServiceClient::GetChannel() {
return version_info::android::GetChannel();
}
bool AwVariationsServiceClient::OverridesRestrictParameter(
std::string* parameter) {
return false;
}
bool AwVariationsServiceClient::IsEnterprise() {
return false;
}
// WebView doesn't support Profiles (or user signin / sync) and therefore there
// is nothing to do here.
void AwVariationsServiceClient::RemoveGoogleGroupsFromPrefsForDeletedProfiles(
PrefService* local_state) {}
} // namespace android_webview