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

Issue 20038: Review request: fix 7324 and 7326: missing icon and wrong path in "download location" (Closed)

Created:
11 years, 10 months ago by xji
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL fix the following 2 bugs: 1.7324 -- RTL: Path contains Hebrew is wrong on "Download location" text box (http://crbug.com/7324) 2. 7326 -- RTL: Folder icon missing on "Download location" text box (http://crbug.com/7326) The fix are: 1. force path to have LTR directionality. 2. draw icon in mirrored position in RTL locales. Steps for test: 1. Create a folder with a Hebrew file name on Hebrew XP 2. Change the download location to the folder created in step 1 3. Observe the path displayed on "Google Chrome Options" --> "Minor Tweaks" --> "Download location" text box Without the fix: The path contains Hebrew folder name is wrong. It displayed as "cCBA\:" while the path is "c:\CBA" where "CBA" is a Hebrew folder name. And there is no folder icon in the "download location" text box. With the fix: The path displayed correctly as "c:\CBA" or "c:\CBA\FED" where "FED" is subfolder of "CBA". And the folder icon showed at the very right. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10121

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Total comments: 9

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 6

Patch Set 13 : '' #

Total comments: 4

Patch Set 14 : '' #

Total comments: 3

Patch Set 15 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -23 lines) Patch
M chrome/browser/bookmarks/bookmark_table_model.cc View 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/options/advanced_contents_view.cc View 7 8 9 10 11 12 13 14 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/views/options/content_page_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +22 lines, -6 lines 0 comments Download
M chrome/common/l10n_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/common/l10n_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +65 lines, -12 lines 0 comments Download
M chrome/common/l10n_util_unittest.cc View 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +79 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
xji
11 years, 10 months ago (2009-02-04 06:48:40 UTC) #1
jeremy
http://codereview.chromium.org/20038/diff/11/1001 File chrome/browser/views/options/content_page_view.cc (right): http://codereview.chromium.org/20038/diff/11/1001#newcode162 Line 162: // check whether the locale is RTL locale. ...
11 years, 10 months ago (2009-02-04 07:14:55 UTC) #2
jungshik at Google
In addition to addressing Jeremy's comments, why don't you add a unit test for a ...
11 years, 10 months ago (2009-02-04 18:21:40 UTC) #3
xji
On 2009/02/04 07:14:55, jeremy wrote: > http://codereview.chromium.org/20038/diff/11/1001 > File chrome/browser/views/options/content_page_view.cc (right): > > http://codereview.chromium.org/20038/diff/11/1001#newcode162 > ...
11 years, 10 months ago (2009-02-06 08:15:12 UTC) #4
xji
On 2009/02/04 18:21:40, Jungshik Shin wrote: > In addition to addressing Jeremy's comments, why don't ...
11 years, 10 months ago (2009-02-06 08:15:29 UTC) #5
jeremy
http://codereview.chromium.org/20038/diff/1010/1013 File chrome/common/l10n_util.cc (right): http://codereview.chromium.org/20038/diff/1010/1013#newcode618 Line 618: localized_path->append(path_components[start]); May be a little cleaner if you ...
11 years, 10 months ago (2009-02-06 17:02:03 UTC) #6
xji
Hi Jeremy, Thanks for the review. Please see my reply inline. On 2009/02/06 17:02:03, jeremy ...
11 years, 10 months ago (2009-02-06 22:19:53 UTC) #7
jeremy
http://codereview.chromium.org/20038/diff/26/27 File chrome/browser/views/options/content_page_view.cc (right): http://codereview.chromium.org/20038/diff/26/27#newcode97 Line 97: void FileDisplayArea::SetFile(const std::wstring& file_path) { Could you change ...
11 years, 10 months ago (2009-02-06 22:55:02 UTC) #8
jungshik at Google
http://codereview.chromium.org/20038/diff/26/29 File chrome/common/l10n_util.cc (right): http://codereview.chromium.org/20038/diff/26/29#newcode610 Line 610: localized_path->append(WideToUTF16(kLeftToRightEmbeddingMark)); I agree with Jeremy. All kFoo constants ...
11 years, 10 months ago (2009-02-06 23:22:55 UTC) #9
xji
On 2009/02/06 22:55:02, jeremy wrote: > http://codereview.chromium.org/20038/diff/26/27 > File chrome/browser/views/options/content_page_view.cc (right): > > http://codereview.chromium.org/20038/diff/26/27#newcode97 > ...
11 years, 10 months ago (2009-02-11 00:23:28 UTC) #10
xji
On 2009/02/06 23:22:55, Jungshik Shin wrote: > http://codereview.chromium.org/20038/diff/26/29 > File chrome/common/l10n_util.cc (right): > > http://codereview.chromium.org/20038/diff/26/29#newcode610 ...
11 years, 10 months ago (2009-02-11 00:31:18 UTC) #11
jeremy
http://codereview.chromium.org/20038/diff/1054/79 File chrome/browser/views/options/content_page_view.cc (right): http://codereview.chromium.org/20038/diff/1054/79#newcode103 Line 103: text_field_->SetText(UTF16ToWide(localized_file_path)); Are you sure you need this #ifdef? ...
11 years, 10 months ago (2009-02-11 05:32:34 UTC) #12
xji
On 2009/02/11 05:32:34, jeremy wrote: > http://codereview.chromium.org/20038/diff/1054/79 > File chrome/browser/views/options/content_page_view.cc (right): > > http://codereview.chromium.org/20038/diff/1054/79#newcode103 > ...
11 years, 10 months ago (2009-02-11 18:51:59 UTC) #13
jeremy
A few comments, but LGTM http://codereview.chromium.org/20038/diff/87/1062 File chrome/common/l10n_util.cc (right): http://codereview.chromium.org/20038/diff/87/1062#newcode617 Line 617: #else Could you ...
11 years, 10 months ago (2009-02-11 19:19:13 UTC) #14
jungshik at Google
>> http://codereview.chromium.org/20038/diff/1054/82#newcode24 >> Line 24: #define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) >> I think ...
11 years, 10 months ago (2009-02-11 19:48:07 UTC) #15
xji
On 2009/02/11 19:19:13, jeremy wrote: > A few comments, but LGTM > > http://codereview.chromium.org/20038/diff/87/1062 > ...
11 years, 10 months ago (2009-02-11 20:25:05 UTC) #16
xji
On 2009/02/11 19:48:07, Jungshik Shin wrote: > >> http://codereview.chromium.org/20038/diff/1054/82#newcode24 > >> Line 24: #define ARRAY_SIZE(array) ...
11 years, 10 months ago (2009-02-11 20:27:34 UTC) #17
jungshik at Google
lgtm On 2009/02/11 20:27:34, xji wrote: > On 2009/02/11 19:48:07, Jungshik Shin wrote: > > ...
11 years, 10 months ago (2009-02-13 23:55:40 UTC) #18
idana
11 years, 10 months ago (2009-02-20 07:49:16 UTC) #19
LGTM

Just a few nits.

http://codereview.chromium.org/20038/diff/95/1068
File chrome/browser/views/options/content_page_view.cc (right):

http://codereview.chromium.org/20038/diff/95/1068#newcode162
Line 162: // locale is RTL locale.
"locale is RTL locale." -> "locale is RTL."

http://codereview.chromium.org/20038/diff/95/1070
File chrome/common/l10n_util.cc (right):

http://codereview.chromium.org/20038/diff/95/1070#newcode609
Line 609: // any) at the end of the path will not be displayed at correct
position.
"at correct position" -> "at the correct position"

http://codereview.chromium.org/20038/diff/95/1069
File chrome/common/l10n_util.h (right):

http://codereview.chromium.org/20038/diff/95/1069#newcode161
Line 161: // LTR UI. All filepaths should be passed through this function before
display
"LTR UI": did you mean RTL?

Powered by Google App Engine
This is Rietveld 408576698