| Index: ios/web_view/internal/cwv_web_client.mm
|
| diff --git a/ios/web_view/internal/criwv_web_client.mm b/ios/web_view/internal/cwv_web_client.mm
|
| similarity index 68%
|
| rename from ios/web_view/internal/criwv_web_client.mm
|
| rename to ios/web_view/internal/cwv_web_client.mm
|
| index fd3d19e5434d2db34dcd66f0a7890a3b6723ba76..b87d9d5fbcb61cef9d5675104b5a232f83ba8f03 100644
|
| --- a/ios/web_view/internal/criwv_web_client.mm
|
| +++ b/ios/web_view/internal/cwv_web_client.mm
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#import "ios/web_view/internal/criwv_web_client.h"
|
| +#import "ios/web_view/internal/cwv_web_client.h"
|
|
|
| #include "base/strings/sys_string_conversions.h"
|
| #include "ios/web/public/user_agent.h"
|
| @@ -16,29 +16,29 @@
|
|
|
| namespace ios_web_view {
|
|
|
| -CRIWVWebClient::CRIWVWebClient(id<CWVDelegate> delegate)
|
| +CWVWebClient::CWVWebClient(id<CWVDelegate> delegate)
|
| : delegate_(delegate), web_main_parts_(nullptr) {}
|
|
|
| -CRIWVWebClient::~CRIWVWebClient() {}
|
| +CWVWebClient::~CWVWebClient() {}
|
|
|
| -web::WebMainParts* CRIWVWebClient::CreateWebMainParts() {
|
| +web::WebMainParts* CWVWebClient::CreateWebMainParts() {
|
| web_main_parts_ = new CRIWVWebMainParts(delegate_);
|
| return web_main_parts_;
|
| }
|
|
|
| -CWVBrowserState* CRIWVWebClient::browser_state() const {
|
| +CWVBrowserState* CWVWebClient::browser_state() const {
|
| return web_main_parts_->browser_state();
|
| }
|
|
|
| -CWVBrowserState* CRIWVWebClient::off_the_record_browser_state() const {
|
| +CWVBrowserState* CWVWebClient::off_the_record_browser_state() const {
|
| return web_main_parts_->off_the_record_browser_state();
|
| }
|
|
|
| -std::string CRIWVWebClient::GetProduct() const {
|
| +std::string CWVWebClient::GetProduct() const {
|
| return base::SysNSStringToUTF8([delegate_ partialUserAgent]);
|
| }
|
|
|
| -std::string CRIWVWebClient::GetUserAgent(bool desktop_user_agent) const {
|
| +std::string CWVWebClient::GetUserAgent(bool desktop_user_agent) const {
|
| std::string product = GetProduct();
|
| return web::BuildUserAgentFromProduct(product);
|
| }
|
|
|