Chromium Code Reviews
Description[Translate] Don't try to translate when offline
If the user reloads a page during a network outage, and language
detection for this page has completed before, Chrome will currently
offer to translate that page, even though this cannot possibly succeed
when offline.
This CL adds an early-out for any attempts to translate content while
offline.
TEST=Load https://namu.wiki/w/나무위키:대문 - then turn off network. Hit reload. Observe translate is not offered a second time.
BUG=612973
Committed: https://crrev.com/0e7f1247be559c523607aa1452dfd2a351b85173
Cr-Commit-Position: refs/heads/master@{#396683}
Patch Set 1 #Patch Set 2 : Remove unneeded header. #Patch Set 3 : Add Mock Translate Driver #Patch Set 4 : Register translate.enabled pref #Patch Set 5 : Force translate off for test. #
Total comments: 8
Patch Set 6 : Review fixes. #
Messages
Total messages: 13 (5 generated)
|
||||||||||||||||||||||||||||