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

Issue 597042: Translate: Move label parsing logic into common code. (Closed)

Created:
10 years, 10 months ago by jeremy
Modified:
9 years, 6 months ago
Reviewers:
jcampan, kuan
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Translate: Move label parsing logic into common code. * Add a string16 & Cocoa version of GetStringF(). * Move logic for parsing translate infobar label into translate_infobars_delegates. * Make views variant of translate infobars use new code. BUG=34466 TEST=Translate infobars should continue to workon Windows. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39206

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix indentation. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -18 lines) Patch
M app/l10n_util.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M app/l10n_util.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M app/l10n_util_mac.h View 1 chunk +9 lines, -0 lines 0 comments Download
M app/l10n_util_mac.mm View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_infobars_delegates.h View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_infobars_delegates.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/views/infobars/translate_infobars.cc View 1 1 chunk +5 lines, -18 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
jeremy
Splitting off separable parts from Mac bring-up of the infobar.
10 years, 10 months ago (2010-02-11 13:52:16 UTC) #1
kuan
http://codereview.chromium.org/597042/diff/1/6 File chrome/browser/translate/translate_infobars_delegates.cc (right): http://codereview.chromium.org/597042/diff/1/6#newcode163 chrome/browser/translate/translate_infobars_delegates.cc:163: bool *swapped_language_placeholders) { indents are off. http://codereview.chromium.org/597042/diff/1/6#newcode174 chrome/browser/translate/translate_infobars_delegates.cc:174: &offsets_tmp); ...
10 years, 10 months ago (2010-02-11 16:55:45 UTC) #2
jeremy
All fixed, ready for another look...
10 years, 10 months ago (2010-02-14 08:55:21 UTC) #3
kuan
10 years, 10 months ago (2010-02-16 17:23:53 UTC) #4
LGTM.

http://codereview.chromium.org/597042/diff/3001/3008
File chrome/browser/views/infobars/translate_infobars.cc (right):

http://codereview.chromium.org/597042/diff/3001/3008#newcode486
chrome/browser/views/infobars/translate_infobars.cc:486:
options_menu_menu_->RunMenuAt(pt, views::Menu2::ALIGN_TOPRIGHT);
i assume this is fixing RTL bug?  if it is, could you merge this cl into 249
branch?
thanks.

Powered by Google App Engine
This is Rietveld 408576698