Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2754)

Unified Diff: components/translate/ios/browser/language_detection_controller.mm

Issue 835203002: Added |load_completion_status| to WebStateObserver's |PageLoaded|. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698