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

Issue 1137373003: [Mac] Localize app shims with the OS preferred language. (Closed)

Created:
5 years, 7 months ago by jackhou1
Modified:
5 years, 7 months ago
Reviewers:
tapted
CC:
chromium-reviews, Matt Giuca, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Localize app shims with the OS preferred language. Previously this created an english localization folder and assumed OSX would use it since it's the only one available. However, when english is not one of the preferred languages, the metadata for the shim bundle would report its filename as the display name. The metadata is used by Spotlight, so the user would be unable to search for the app. See the bug for more details. With this CL, we still only create one localization folder, but use the most preferred language reported by the OS. This also deletes any existing shims before creating new ones. BUG=482658 Committed: https://crrev.com/546101a5f05e8356d5e536bb17e12f182f393c4f Cr-Commit-Position: refs/heads/master@{#330038}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Delete existing shims in CreateShortcuts. #

Total comments: 2

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -7 lines) Patch
M chrome/browser/web_applications/web_app_mac.mm View 1 2 4 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
jackhou1
tapted, could you take a look?
5 years, 7 months ago (2015-05-14 06:54:50 UTC) #2
tapted
https://codereview.chromium.org/1137373003/diff/1/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/1137373003/diff/1/chrome/browser/web_applications/web_app_mac.mm#newcode904 chrome/browser/web_applications/web_app_mac.mm:904: NSString* language = [[NSLocale preferredLanguages] objectAtIndex:0]; should it use ...
5 years, 7 months ago (2015-05-14 07:53:14 UTC) #3
jackhou1
https://codereview.chromium.org/1137373003/diff/1/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/1137373003/diff/1/chrome/browser/web_applications/web_app_mac.mm#newcode904 chrome/browser/web_applications/web_app_mac.mm:904: NSString* language = [[NSLocale preferredLanguages] objectAtIndex:0]; On 2015/05/14 07:53:14, ...
5 years, 7 months ago (2015-05-15 00:41:08 UTC) #4
tapted
lgtm if the stuff below sounds right. On 2015/05/15 00:41:08, jackhou1 wrote: > https://codereview.chromium.org/1137373003/diff/1/chrome/browser/web_applications/web_app_mac.mm > ...
5 years, 7 months ago (2015-05-15 00:57:29 UTC) #5
jackhou1
On 2015/05/15 00:57:29, tapted wrote: > lgtm if the stuff below sounds right. > > ...
5 years, 7 months ago (2015-05-15 01:46:45 UTC) #6
tapted
https://codereview.chromium.org/1137373003/diff/20001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/1137373003/diff/20001/chrome/browser/web_applications/web_app_mac.mm#newcode703 chrome/browser/web_applications/web_app_mac.mm:703: if (!base::CopyDirectory(staging_path, dst_path, true)) { What about before this, ...
5 years, 7 months ago (2015-05-15 02:02:49 UTC) #7
jackhou1
https://codereview.chromium.org/1137373003/diff/20001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/1137373003/diff/20001/chrome/browser/web_applications/web_app_mac.mm#newcode703 chrome/browser/web_applications/web_app_mac.mm:703: if (!base::CopyDirectory(staging_path, dst_path, true)) { On 2015/05/15 02:02:49, tapted ...
5 years, 7 months ago (2015-05-15 02:44:57 UTC) #8
tapted
lgtm
5 years, 7 months ago (2015-05-15 03:22:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137373003/40001
5 years, 7 months ago (2015-05-15 03:28:04 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-15 04:12:38 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-05-15 04:13:27 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/546101a5f05e8356d5e536bb17e12f182f393c4f
Cr-Commit-Position: refs/heads/master@{#330038}

Powered by Google App Engine
This is Rietveld 408576698