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

Issue 2822383002: check network connectivity in onPageTranslated callback. (Closed)

Created:
3 years, 8 months ago by renjieliu1
Modified:
3 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, yyushkina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Check network connectivity in onPageTranslated callback. When attempting second translation keeping the WiFi/Data OFF, Chrome shows "Translated to <desired language>" message though web page remains untranslated. Current fix is to check whether user is online before showing up the translate UI in OnPageTranslated callback. BUG=653499 Review-Url: https://codereview.chromium.org/2822383002 Cr-Commit-Position: refs/heads/master@{#468569} Committed: https://chromium.googlesource.com/chromium/src/+/97e2e2a80810368ef54b61ddfe1f529cdb801cf2

Patch Set 1 #

Patch Set 2 : detect internet connection before translate #

Patch Set 3 : add unit tests #

Patch Set 4 : add unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -2 lines) Patch
M components/translate/content/browser/content_translate_driver.cc View 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M components/translate/core/browser/mock_translate_driver.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M components/translate/core/browser/mock_translate_driver.cc View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M components/translate/core/browser/translate_manager.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_manager_unittest.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (16 generated)
renjieliu1
3 years, 8 months ago (2017-04-19 04:31:32 UTC) #2
napper
Please fix CL comment to match Chrome format.
3 years, 8 months ago (2017-04-20 04:31:37 UTC) #7
renjieliu1
On 2017/04/20 04:31:37, napper wrote: > Please fix CL comment to match Chrome format. Couldn't ...
3 years, 8 months ago (2017-04-20 06:39:24 UTC) #9
renjieliu1
On 2017/04/20 04:31:37, napper wrote: > Please fix CL comment to match Chrome format. Couldn't ...
3 years, 8 months ago (2017-04-20 06:39:27 UTC) #10
napper
On 2017/04/20 at 06:39:27, renjieliu wrote: > On 2017/04/20 04:31:37, napper wrote: > > Please ...
3 years, 8 months ago (2017-04-20 06:51:57 UTC) #11
renjieliu1
On 2017/04/20 06:51:57, napper wrote: > On 2017/04/20 at 06:39:27, renjieliu wrote: > > On ...
3 years, 8 months ago (2017-04-21 00:06:52 UTC) #13
napper
lgtm Adding Rachel for a quick review. Note we have tested this on desktop Linux ...
3 years, 8 months ago (2017-04-23 23:31:29 UTC) #15
groby-ooo-7-16
On 2017/04/23 23:31:29, napper wrote: > lgtm > > Adding Rachel for a quick review. ...
3 years, 7 months ago (2017-04-26 22:55:41 UTC) #16
groby-ooo-7-16
On 2017/04/26 22:55:41, groby wrote: > On 2017/04/23 23:31:29, napper wrote: > > lgtm > ...
3 years, 7 months ago (2017-04-26 22:57:32 UTC) #17
napper
On 2017/04/26 at 22:57:32, groby wrote: > On 2017/04/26 22:55:41, groby wrote: > > On ...
3 years, 7 months ago (2017-04-26 23:39:05 UTC) #18
renjieliu1
On 2017/04/26 23:39:05, napper wrote: > On 2017/04/26 at 22:57:32, groby wrote: > > On ...
3 years, 7 months ago (2017-04-27 01:43:46 UTC) #19
groby1
On 2017/04/27 01:43:46, renjieliu1 wrote: > On 2017/04/26 23:39:05, napper wrote: > > On 2017/04/26 ...
3 years, 7 months ago (2017-04-28 04:55:13 UTC) #20
napper
On 2017/04/28 at 04:55:13, groby wrote: > On 2017/04/27 01:43:46, renjieliu1 wrote: > > On ...
3 years, 7 months ago (2017-04-28 05:52:04 UTC) #21
renjieliu1
On 2017/04/28 05:52:04, napper wrote: > On 2017/04/28 at 04:55:13, groby wrote: > > On ...
3 years, 7 months ago (2017-04-28 06:47:55 UTC) #22
groby-ooo-7-16
On 2017/04/28 06:47:55, renjieliu1 wrote: > On 2017/04/28 05:52:04, napper wrote: > > On 2017/04/28 ...
3 years, 7 months ago (2017-05-02 03:14:59 UTC) #27
renjieliu1
On 2017/05/02 03:14:59, groby wrote: > On 2017/04/28 06:47:55, renjieliu1 wrote: > > On 2017/04/28 ...
3 years, 7 months ago (2017-05-02 04:45:44 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2822383002/60001
3 years, 7 months ago (2017-05-02 04:48:19 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 05:43:01 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/97e2e2a80810368ef54b61ddfe1f...

Powered by Google App Engine
This is Rietveld 408576698