Chromium Code Reviews| Index: ios/web_view/internal/translate/criwv_translate_accept_languages_factory.cc |
| diff --git a/ios/web_view/internal/translate/criwv_translate_accept_languages_factory.cc b/ios/web_view/internal/translate/criwv_translate_accept_languages_factory.cc |
| index fe64d96ff7e86e49bb7313337ddfd9c1f2dc7457..cd1738d4ea268c407c7b0b3884e40271218e3b2d 100644 |
| --- a/ios/web_view/internal/translate/criwv_translate_accept_languages_factory.cc |
| +++ b/ios/web_view/internal/translate/criwv_translate_accept_languages_factory.cc |
| @@ -10,8 +10,8 @@ |
| #include "components/keyed_service/ios/browser_state_dependency_manager.h" |
| #include "components/prefs/pref_service.h" |
| #include "components/translate/core/browser/translate_accept_languages.h" |
| -#include "ios/web_view/internal/criwv_browser_state.h" |
| #include "ios/web_view/internal/pref_names.h" |
| +#include "ios/web_view/internal/web_view_browser_state.h" |
| namespace { |
| @@ -52,7 +52,7 @@ CRIWVTranslateAcceptLanguagesFactory::GetInstance() { |
| // static |
| translate::TranslateAcceptLanguages* |
| CRIWVTranslateAcceptLanguagesFactory::GetForBrowserState( |
| - CRIWVBrowserState* state) { |
| + WebViewBrowserState* state) { |
|
Eugene But (OOO till 7-30)
2017/02/25 01:29:28
Optional nit: s/state/browser_state
michaeldo
2017/02/25 07:41:11
Done.
|
| TranslateAcceptLanguagesService* service = |
| static_cast<TranslateAcceptLanguagesService*>( |
| GetInstance()->GetServiceForBrowserState(state, true)); |
| @@ -69,8 +69,8 @@ CRIWVTranslateAcceptLanguagesFactory::~CRIWVTranslateAcceptLanguagesFactory() {} |
| std::unique_ptr<KeyedService> |
| CRIWVTranslateAcceptLanguagesFactory::BuildServiceInstanceFor( |
| web::BrowserState* context) const { |
| - CRIWVBrowserState* criwv_browser_state = |
| - CRIWVBrowserState::FromBrowserState(context); |
| + WebViewBrowserState* criwv_browser_state = |
|
Eugene But (OOO till 7-30)
2017/02/25 01:29:28
s/criwv_browser_state/browser_state
michaeldo
2017/02/25 07:41:11
Done.
|
| + WebViewBrowserState::FromBrowserState(context); |
| return base::MakeUnique<TranslateAcceptLanguagesService>( |
| criwv_browser_state->GetPrefs()); |
| } |