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

Issue 23708029: Translate: Refactoring: Create TranslateUIDelegate (Closed)

Created:
7 years, 3 months ago by hajimehoshi
Modified:
7 years, 2 months ago
CC:
chromium-reviews, Miguel Garcia
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Translate: Refactoring: Create TranslateUIDelegate The TranslateUIDelegate is a generic delegate for UI which offers Translate feature to the user. Currently this is used only by Translate infobar, and is going to be used by the new Translate UX we're implementing now (crbug/276181). BUG=276181 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226704 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227430

Patch Set 1 #

Total comments: 6

Patch Set 2 : (rebasing) #

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : . #

Patch Set 5 : (rebasing) #

Patch Set 6 : (rebasing) #

Total comments: 3

Patch Set 7 : Remove static initializers #

Patch Set 8 : (rebasing) #

Patch Set 9 : (rebasing) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -141 lines) Patch
M chrome/browser/translate/translate_infobar_delegate.h View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -39 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 chunks +26 lines, -102 lines 0 comments Download
M chrome/browser/translate/translate_prefs.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/translate/translate_ui_delegate.h View 1 2 3 4 5 6 1 chunk +127 lines, -0 lines 0 comments Download
A chrome/browser/translate/translate_ui_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +216 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
hajimehoshi
Can you take a look? Thank you in advance.
7 years, 3 months ago (2013-09-10 09:03:21 UTC) #1
Takashi Toyoshima
https://chromiumcodereview.appspot.com/23708029/diff/1/chrome/browser/translate/translate_ui_delegate.cc File chrome/browser/translate/translate_ui_delegate.cc (right): https://chromiumcodereview.appspot.com/23708029/diff/1/chrome/browser/translate/translate_ui_delegate.cc#newcode41 chrome/browser/translate/translate_ui_delegate.cc:41: std::vector<std::string> language_codes; wrong indent https://chromiumcodereview.appspot.com/23708029/diff/1/chrome/browser/translate/translate_ui_delegate.cc#newcode81 chrome/browser/translate/translate_ui_delegate.cc:81: prefs_.reset(new TranslatePrefs(profile->GetPrefs())); Maybe ...
7 years, 3 months ago (2013-09-10 09:33:16 UTC) #2
hajimehoshi
Thanks. Can you take a look again? https://codereview.chromium.org/23708029/diff/1/chrome/browser/translate/translate_ui_delegate.cc File chrome/browser/translate/translate_ui_delegate.cc (right): https://codereview.chromium.org/23708029/diff/1/chrome/browser/translate/translate_ui_delegate.cc#newcode41 chrome/browser/translate/translate_ui_delegate.cc:41: std::vector<std::string> language_codes; ...
7 years, 3 months ago (2013-09-12 06:16:03 UTC) #3
Takashi Toyoshima
https://codereview.chromium.org/23708029/diff/15001/chrome/browser/translate/translate_ui_delegate.h File chrome/browser/translate/translate_ui_delegate.h (right): https://codereview.chromium.org/23708029/diff/15001/chrome/browser/translate/translate_ui_delegate.h#newcode25 chrome/browser/translate/translate_ui_delegate.h:25: // while prefs object lives. You should not use ...
7 years, 3 months ago (2013-09-12 07:08:40 UTC) #4
hajimehoshi
Thanks! https://codereview.chromium.org/23708029/diff/15001/chrome/browser/translate/translate_ui_delegate.h File chrome/browser/translate/translate_ui_delegate.h (right): https://codereview.chromium.org/23708029/diff/15001/chrome/browser/translate/translate_ui_delegate.h#newcode25 chrome/browser/translate/translate_ui_delegate.h:25: // while prefs object lives. On 2013/09/12 07:08:40, ...
7 years, 3 months ago (2013-09-12 07:48:15 UTC) #5
hajimehoshi
> Do you know how their lifetimes are managed? As for the lifetimes of the ...
7 years, 3 months ago (2013-09-13 08:48:48 UTC) #6
hajimehoshi
[1] http://dev.chromium.org/developers/design-documents/preferences [2] ProfileManager::FinishDeletingProfile.
7 years, 3 months ago (2013-09-13 09:15:03 UTC) #7
Takashi Toyoshima
+miguelg FYI Miguel: Since this change is blocking our new feature implementation, we'll land this ...
7 years, 2 months ago (2013-10-01 10:58:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23708029/44001
7 years, 2 months ago (2013-10-03 05:41:18 UTC) #9
commit-bot: I haz the power
Change committed as 226704
7 years, 2 months ago (2013-10-03 08:13:32 UTC) #10
tapted
https://codereview.chromium.org/23708029/diff/44001/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/23708029/diff/44001/chrome/browser/translate/translate_infobar_delegate.cc#newcode35 chrome/browser/translate/translate_infobar_delegate.cc:35: const size_t TranslateInfoBarDelegate::kNoIndex = TranslateUIDelegate::kNoIndex; This change (I think) ...
7 years, 2 months ago (2013-10-03 10:03:11 UTC) #11
hajimehoshi
https://codereview.chromium.org/23708029/diff/44001/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/23708029/diff/44001/chrome/browser/translate/translate_infobar_delegate.cc#newcode35 chrome/browser/translate/translate_infobar_delegate.cc:35: const size_t TranslateInfoBarDelegate::kNoIndex = TranslateUIDelegate::kNoIndex; I guess the cause ...
7 years, 2 months ago (2013-10-03 10:11:07 UTC) #12
Miguel Garcia
Thanks for the heads up, we are working on a less hacky solution for all ...
7 years, 2 months ago (2013-10-03 10:34:49 UTC) #13
Takashi Toyoshima
Hajime works on implementing new UI behind a flag. There are some common methods which ...
7 years, 2 months ago (2013-10-03 10:40:58 UTC) #14
hajimehoshi
toyoshim@, can you take a look again? Thanks.
7 years, 2 months ago (2013-10-03 12:04:39 UTC) #15
Takashi Toyoshima
LGTM. https://codereview.chromium.org/23708029/diff/44001/chrome/browser/translate/translate_ui_delegate.cc File chrome/browser/translate/translate_ui_delegate.cc (right): https://codereview.chromium.org/23708029/diff/44001/chrome/browser/translate/translate_ui_delegate.cc#newcode32 chrome/browser/translate/translate_ui_delegate.cc:32: const size_t TranslateUIDelegate::kNoIndex = static_cast<size_t>(-1); For this file, ...
7 years, 2 months ago (2013-10-03 12:31:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23708029/84001
7 years, 2 months ago (2013-10-04 04:33:34 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=205518
7 years, 2 months ago (2013-10-04 07:41:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23708029/122001
7 years, 2 months ago (2013-10-07 04:18:00 UTC) #19
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-07 04:24:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23708029/122001
7 years, 2 months ago (2013-10-07 04:46:53 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-07 05:12:49 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23708029/122001
7 years, 2 months ago (2013-10-07 06:34:12 UTC) #23
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-07 06:58:09 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23708029/122001
7 years, 2 months ago (2013-10-07 07:39:56 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-07 08:05:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23708029/122001
7 years, 2 months ago (2013-10-07 08:54:55 UTC) #27
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-07 09:19:44 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23708029/122001
7 years, 2 months ago (2013-10-08 00:28:17 UTC) #29
commit-bot: I haz the power
7 years, 2 months ago (2013-10-08 02:17:43 UTC) #30
Message was sent while issue was closed.
Change committed as 227430

Powered by Google App Engine
This is Rietveld 408576698