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

Issue 15949022: Translate: language list smart updater (Closed)

Created:
7 years, 6 months ago by Takashi Toyoshima
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Translate: language list smart updater Omit language list update until EULA is accepted, and try update again if previous update fails in cases; 1) Network becomes online 2) Infobar goes to be shown 3) EULA is accepted BUG=244202, 126701 TEST=browser_tests, and unit_tests TBR=sky@chromium.org, rohitrao@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207482

Patch Set 1 #

Patch Set 2 : [refactoring to introduce retry (no functional change)] #

Patch Set 3 : done #

Total comments: 18

Patch Set 4 : (rebase) #

Patch Set 5 : review #3 #

Patch Set 6 : rebase #

Patch Set 7 : review #8, fix a broken test #

Patch Set 8 : add retry limitation #

Patch Set 9 : nits for retry #

Total comments: 10

Patch Set 10 : (rebase: remove refactoring diffs) #

Patch Set 11 : use ResourceRequestAllowedNotifier #

Patch Set 12 : retry logic #

Patch Set 13 : typo #

Total comments: 10

Patch Set 14 : (rebase) #

Patch Set 15 : [rebase to 16841020] #

Patch Set 16 : review #15 #

Total comments: 2

Patch Set 17 : review #18 #

Patch Set 18 : (rebase) #

Patch Set 19 : (rebase to 16841020) #

Total comments: 2

Patch Set 20 : for CQ #

Patch Set 21 : non-trivial rebase #

Patch Set 22 : nits #

Total comments: 2

Patch Set 23 : nits #

Patch Set 24 : disable network update on mac infobar tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -21 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_language_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_language_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 6 chunks +34 lines, -5 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/translate/translate_url_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_url_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
Takashi Toyoshima
Hi mad, Can you take a look this? Once this change is landed, I'll introduce ...
7 years, 6 months ago (2013-06-06 07:38:57 UTC) #1
Takashi Toyoshima
+Hajime
7 years, 6 months ago (2013-06-07 03:40:01 UTC) #2
hajimehoshi
https://chromiumcodereview.appspot.com/15949022/diff/4003/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://chromiumcodereview.appspot.com/15949022/diff/4003/chrome/browser/translate/translate_language_list.cc#newcode206 chrome/browser/translate/translate_language_list.cc:206: scoped_ptr<const net::URLFetcher> delete_ptr(fetcher_.release()); Remove this line (as we discussed).
7 years, 6 months ago (2013-06-07 04:15:44 UTC) #3
Takashi Toyoshima
https://chromiumcodereview.appspot.com/15949022/diff/4003/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://chromiumcodereview.appspot.com/15949022/diff/4003/chrome/browser/translate/translate_language_list.cc#newcode189 chrome/browser/translate/translate_language_list.cc:189: VLOG(9) << "Fetch supporting language list from: " << ...
7 years, 6 months ago (2013-06-07 05:17:17 UTC) #4
hajimehoshi
Much clearer! lgtm On 2013/06/07 05:17:17, Takashi Toyoshima (chromium) wrote: > https://chromiumcodereview.appspot.com/15949022/diff/4003/chrome/browser/translate/translate_language_list.cc > File chrome/browser/translate/translate_language_list.cc ...
7 years, 6 months ago (2013-06-07 05:43:13 UTC) #5
MAD
Sorry about the delay, I'm Sheriff today as I was yesterday... I have a few ...
7 years, 6 months ago (2013-06-07 13:29:24 UTC) #6
Takashi Toyoshima
Thanks. Yes, this change is not simple, so I though I should wait for your ...
7 years, 6 months ago (2013-06-07 14:42:55 UTC) #7
MAD
Some answers to your comments... Thanks! BYE MAD https://codereview.chromium.org/15949022/diff/4003/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15949022/diff/4003/chrome/browser/translate/translate_language_list.cc#newcode173 chrome/browser/translate/translate_language_list.cc:173: callback.Run(include_alpha_languages_, ...
7 years, 6 months ago (2013-06-07 15:02:14 UTC) #8
Takashi Toyoshima
Hi mad, I rebase this change, and fix some points you suggested. Also, I introduce ...
7 years, 6 months ago (2013-06-10 13:36:57 UTC) #9
MAD
More comments... I think you misunderstood my comment about exponential backoff... More details below... BYE ...
7 years, 6 months ago (2013-06-10 18:28:10 UTC) #10
Takashi Toyoshima
Thanks. By the way, this patch can be splited to two part. One is for ...
7 years, 6 months ago (2013-06-11 01:33:51 UTC) #11
MAD
On 2013/06/11 01:33:51, Takashi Toyoshima (chromium) wrote: > Thanks. > By the way, this patch ...
7 years, 6 months ago (2013-06-11 16:49:52 UTC) #12
Takashi Toyoshima
Hi mad, Since I already land a split CL to reconstruct URLFetcher handling, this change ...
7 years, 6 months ago (2013-06-12 05:20:43 UTC) #13
Alexei Svitkine (slow)
Thanks for the resource_request_allowed_notifier.cc bug fix! Could you move the changes to it in a ...
7 years, 6 months ago (2013-06-12 14:50:14 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/15949022/diff/92002/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15949022/diff/92002/chrome/browser/translate/translate_language_list.cc#newcode206 chrome/browser/translate/translate_language_list.cc:206: // Limits LanguageListFetcher level retry to kMaxRetryLanguageListFetcher Nit: I ...
7 years, 6 months ago (2013-06-13 14:46:02 UTC) #15
Takashi Toyoshima
Thanks Alexei, As you suggested, I split ResourceRequestAllowedNotifier changes to https://codereview.chromium.org/16841020/. After the previous change, ...
7 years, 6 months ago (2013-06-14 08:13:55 UTC) #16
Takashi Toyoshima
Thanks Alexei, I revised translate side change, too. https://codereview.chromium.org/15949022/diff/92002/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15949022/diff/92002/chrome/browser/translate/translate_language_list.cc#newcode206 chrome/browser/translate/translate_language_list.cc:206: // ...
7 years, 6 months ago (2013-06-14 09:10:48 UTC) #17
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/15949022/diff/103001/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15949022/diff/103001/chrome/browser/translate/translate_language_list.cc#newcode367 chrome/browser/translate/translate_language_list.cc:367: to invoke OnLanguageListFetchComplete. Nit: remove this line?
7 years, 6 months ago (2013-06-14 22:06:05 UTC) #18
Takashi Toyoshima
Thanks. Now, I'll wait for mad's another lgtm. https://codereview.chromium.org/15949022/diff/103001/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15949022/diff/103001/chrome/browser/translate/translate_language_list.cc#newcode367 chrome/browser/translate/translate_language_list.cc:367: to ...
7 years, 6 months ago (2013-06-17 07:20:04 UTC) #19
MAD
LGTM with one small typo nit request... :-) Thanks! BYE MAD https://codereview.chromium.org/15949022/diff/119001/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): ...
7 years, 6 months ago (2013-06-17 14:48:41 UTC) #20
Takashi Toyoshima
Dependent CL was committed. I'll push it to CQ. https://codereview.chromium.org/15949022/diff/119001/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15949022/diff/119001/chrome/browser/translate/translate_language_list.cc#newcode372 chrome/browser/translate/translate_language_list.cc:372: ...
7 years, 6 months ago (2013-06-19 10:06:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/15949022/137001
7 years, 6 months ago (2013-06-19 10:21:23 UTC) #22
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=140912
7 years, 6 months ago (2013-06-19 11:32:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/15949022/137001
7 years, 6 months ago (2013-06-19 14:28:49 UTC) #24
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-19 14:31:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/15949022/137001
7 years, 6 months ago (2013-06-19 16:54:56 UTC) #26
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-19 17:01:31 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/15949022/137001
7 years, 6 months ago (2013-06-20 02:42:16 UTC) #28
commit-bot: I haz the power
Failed to apply patch for chrome/browser/translate/translate_language_list.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-20 02:42:18 UTC) #29
Takashi Toyoshima
Hi Hajime, This change was conflicted with your previous change. Now that this rebase is ...
7 years, 6 months ago (2013-06-20 06:03:54 UTC) #30
hajimehoshi
Sure. Sorry for the chaos.
7 years, 6 months ago (2013-06-20 06:05:12 UTC) #31
hajimehoshi
lgtm On 2013/06/20 06:05:12, hajimehoshi wrote: > Sure. Sorry for the chaos.
7 years, 6 months ago (2013-06-20 08:15:50 UTC) #32
hajimehoshi
Oops. I mean lgtm with nits. On 2013/06/20 08:15:50, hajimehoshi wrote: > lgtm > > ...
7 years, 6 months ago (2013-06-20 08:16:16 UTC) #33
hajimehoshi
https://codereview.chromium.org/15949022/diff/173002/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15949022/diff/173002/chrome/browser/translate/translate_language_list.cc#newcode310 chrome/browser/translate/translate_language_list.cc:310: // The TranslateURLFetcher has a limit for retried requests ...
7 years, 6 months ago (2013-06-20 08:16:31 UTC) #34
Takashi Toyoshima
https://codereview.chromium.org/15949022/diff/173002/chrome/browser/translate/translate_language_list.cc File chrome/browser/translate/translate_language_list.cc (right): https://codereview.chromium.org/15949022/diff/173002/chrome/browser/translate/translate_language_list.cc#newcode310 chrome/browser/translate/translate_language_list.cc:310: // The TranslateURLFetcher has a limit for retried requests ...
7 years, 6 months ago (2013-06-20 08:26:19 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/15949022/124003
7 years, 6 months ago (2013-06-20 08:27:24 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/15949022/124003
7 years, 6 months ago (2013-06-20 08:30:48 UTC) #37
Takashi Toyoshima
With this change, URLFetcher runs to update language list in unit_tests for mac's infobar. I ...
7 years, 6 months ago (2013-06-20 14:06:57 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/15949022/130006
7 years, 6 months ago (2013-06-20 14:07:28 UTC) #39
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 18:14:25 UTC) #40
Message was sent while issue was closed.
Change committed as 207482

Powered by Google App Engine
This is Rietveld 408576698