| Index: components/translate/ios/browser/language_detection_controller.mm
|
| diff --git a/components/translate/ios/browser/language_detection_controller.mm b/components/translate/ios/browser/language_detection_controller.mm
|
| index b8ea2beb1952f1b9fefe161ba7e82794f4c04e34..925009bd1abf93c76626c8fdd75e631d40566788 100644
|
| --- a/components/translate/ios/browser/language_detection_controller.mm
|
| +++ b/components/translate/ios/browser/language_detection_controller.mm
|
| @@ -127,8 +127,9 @@ void LanguageDetectionController::OnTextRetrieved(
|
|
|
| // web::WebStateObserver implementation:
|
|
|
| -void LanguageDetectionController::PageLoaded() {
|
| - StartLanguageDetection();
|
| +void LanguageDetectionController::PageLoaded(bool load_success) {
|
| + if (load_success)
|
| + StartLanguageDetection();
|
| }
|
|
|
| void LanguageDetectionController::URLHashChanged() {
|
|
|