| Index: ios/web/public/test/test_web_client.mm
|
| diff --git a/ios/web/public/test/test_web_client.mm b/ios/web/public/test/test_web_client.mm
|
| index d3d4f3ba07afcd3562089756c8468eec89618e84..a5c6bad972500aec0a8b481746b70bd28abb7eba 100644
|
| --- a/ios/web/public/test/test_web_client.mm
|
| +++ b/ios/web/public/test/test_web_client.mm
|
| @@ -5,6 +5,8 @@
|
| #import "ios/web/public/test/test_web_client.h"
|
|
|
| #include "base/logging.h"
|
| +#include "ios/web/test/test_url_constants.h"
|
| +#include "url/gurl.h"
|
|
|
| namespace web {
|
|
|
| @@ -13,6 +15,16 @@ TestWebClient::TestWebClient()
|
|
|
| TestWebClient::~TestWebClient() {}
|
|
|
| +void TestWebClient::AddAdditionalSchemes(
|
| + std::vector<url::SchemeWithType>* additional_standard_schemes) const {
|
| + url::SchemeWithType scheme = {kTestWebUIScheme, url::SCHEME_WITHOUT_PORT};
|
| + additional_standard_schemes->push_back(scheme);
|
| +}
|
| +
|
| +bool TestWebClient::IsAppSpecificURL(const GURL& url) const {
|
| + return url.SchemeIs(kTestWebUIScheme);
|
| +}
|
| +
|
| NSString* TestWebClient::GetEarlyPageScript() const {
|
| return early_page_script_ ? early_page_script_.get() : @"";
|
| }
|
|
|