| Index: ios/web_view/internal/cwv_web_view_configuration.mm
|
| diff --git a/ios/web_view/internal/cwv_web_view_configuration.mm b/ios/web_view/internal/cwv_web_view_configuration.mm
|
| index 736dfbbd3fafcc0810b8aa849780bd4b3c28a064..69818a88c53ce000e0bf3330feab5777706bd5c3 100644
|
| --- a/ios/web_view/internal/cwv_web_view_configuration.mm
|
| +++ b/ios/web_view/internal/cwv_web_view_configuration.mm
|
| @@ -9,6 +9,7 @@
|
| #include "base/threading/thread_restrictions.h"
|
| #include "ios/web_view/internal/app/application_context.h"
|
| #import "ios/web_view/internal/cwv_user_content_controller_internal.h"
|
| +#import "ios/web_view/internal/translate/cwv_translation_configuration_internal.h"
|
| #include "ios/web_view/internal/web_view_browser_state.h"
|
| #include "ios/web_view/internal/web_view_global_state_util.h"
|
|
|
| @@ -28,6 +29,7 @@
|
|
|
| @implementation CWVWebViewConfiguration
|
|
|
| +@synthesize translationConfiguration = _translationConfiguration;
|
| @synthesize userContentController = _userContentController;
|
|
|
| + (instancetype)defaultConfiguration {
|
| @@ -68,6 +70,9 @@
|
| if (self) {
|
| _browserState = std::move(browserState);
|
|
|
| + _translationConfiguration = [[CWVTranslationConfiguration alloc]
|
| + initWithPrefService:_browserState->GetPrefs()];
|
| +
|
| _userContentController =
|
| [[CWVUserContentController alloc] initWithConfiguration:self];
|
| }
|
|
|