Commit 7f358b83 authored by Rohit Rao's avatar Rohit Rao Committed by Commit Bot

[ios] Implements RLZTrackerDelegateImpl::GetURLLoaderFactory().

BUG=873972

Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Ic81c197c96e812e967958ff03aff6c55dc2bd119
Reviewed-on: https://chromium-review.googlesource.com/1174941Reviewed-by: default avatarAntonio Gomes <tonikitoo@igalia.com>
Reviewed-by: default avatarMaks Orlovich <morlovich@chromium.org>
Reviewed-by: default avatarPeter Lee <pkl@chromium.org>
Commit-Queue: Peter Lee <pkl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583037}
parent 04509e6d
...@@ -17,5 +17,6 @@ source_set("rlz") { ...@@ -17,5 +17,6 @@ source_set("rlz") {
"//ios/chrome/browser/google", "//ios/chrome/browser/google",
"//ios/chrome/browser/search_engines", "//ios/chrome/browser/search_engines",
"//ios/web", "//ios/web",
"//services/network/public/cpp",
] ]
} }
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "ios/chrome/browser/google/google_brand.h" #include "ios/chrome/browser/google/google_brand.h"
#include "ios/chrome/browser/search_engines/template_url_service_factory.h" #include "ios/chrome/browser/search_engines/template_url_service_factory.h"
#include "ios/web/public/web_thread.h" #include "ios/web/public/web_thread.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
RLZTrackerDelegateImpl::RLZTrackerDelegateImpl() {} RLZTrackerDelegateImpl::RLZTrackerDelegateImpl() {}
...@@ -58,8 +59,9 @@ bool RLZTrackerDelegateImpl::IsOnUIThread() { ...@@ -58,8 +59,9 @@ bool RLZTrackerDelegateImpl::IsOnUIThread() {
return web::WebThread::CurrentlyOn(web::WebThread::UI); return web::WebThread::CurrentlyOn(web::WebThread::UI);
} }
net::URLRequestContextGetter* RLZTrackerDelegateImpl::GetRequestContext() { scoped_refptr<network::SharedURLLoaderFactory>
return GetApplicationContext()->GetSystemURLRequestContext(); RLZTrackerDelegateImpl::GetURLLoaderFactory() {
return GetApplicationContext()->GetSharedURLLoaderFactory();
} }
bool RLZTrackerDelegateImpl::GetBrand(std::string* brand) { bool RLZTrackerDelegateImpl::GetBrand(std::string* brand) {
......
...@@ -33,7 +33,7 @@ class RLZTrackerDelegateImpl : public rlz::RLZTrackerDelegate { ...@@ -33,7 +33,7 @@ class RLZTrackerDelegateImpl : public rlz::RLZTrackerDelegate {
// RLZTrackerDelegate implementation. // RLZTrackerDelegate implementation.
void Cleanup() override; void Cleanup() override;
bool IsOnUIThread() override; bool IsOnUIThread() override;
net::URLRequestContextGetter* GetRequestContext() override; scoped_refptr<network::SharedURLLoaderFactory> GetURLLoaderFactory() override;
bool GetBrand(std::string* brand) override; bool GetBrand(std::string* brand) override;
bool IsBrandOrganic(const std::string& brand) override; bool IsBrandOrganic(const std::string& brand) override;
bool GetReactivationBrand(std::string* brand) override; bool GetReactivationBrand(std::string* brand) override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment