aw_variations_service_client.cc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "android_webview/browser/variations/aw_variations_service_client.h"
  5. #include "components/version_info/android/channel_getter.h"
  6. #include "components/version_info/version_info.h"
  7. #include "services/network/public/cpp/shared_url_loader_factory.h"
  8. using version_info::Channel;
  9. namespace android_webview {
  10. AwVariationsServiceClient::AwVariationsServiceClient() = default;
  11. AwVariationsServiceClient::~AwVariationsServiceClient() = default;
  12. base::Version AwVariationsServiceClient::GetVersionForSimulation() {
  13. return version_info::GetVersion();
  14. }
  15. scoped_refptr<network::SharedURLLoaderFactory>
  16. AwVariationsServiceClient::GetURLLoaderFactory() {
  17. return nullptr;
  18. }
  19. network_time::NetworkTimeTracker*
  20. AwVariationsServiceClient::GetNetworkTimeTracker() {
  21. return nullptr;
  22. }
  23. Channel AwVariationsServiceClient::GetChannel() {
  24. return version_info::android::GetChannel();
  25. }
  26. bool AwVariationsServiceClient::OverridesRestrictParameter(
  27. std::string* parameter) {
  28. return false;
  29. }
  30. bool AwVariationsServiceClient::IsEnterprise() {
  31. return false;
  32. }
  33. } // namespace android_webview