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

Issue 2048523002: Fix base::GetNativeLibraryName() for Mac. (Closed)

Created:
4 years, 6 months ago by Lei Zhang
Modified:
4 years, 6 months ago
CC:
chromium-reviews, eme-reviews_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@native_lib_clean
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix base::GetNativeLibraryName() for Mac. - Also change GetNativeLibraryName() to take a StringPiece and return a std::string, instead of StringPiece16/string16. - Use that in a few places to get rid of platform-specific ifdefs. Committed: https://crrev.com/02c965bc53c59075e8f2453c6146e75782dd0c44 Cr-Commit-Position: refs/heads/master@{#399759}

Patch Set 1 #

Patch Set 2 : Remove string16 version of GetNativeLibraryName #

Total comments: 5

Patch Set 3 : rebase #

Patch Set 4 : rebase correctly, update comment #

Total comments: 12

Patch Set 5 : Address comments, merge variables. #

Total comments: 4

Patch Set 6 : address comments, nits #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -69 lines) Patch
M base/native_library.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M base/native_library_ios.mm View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M base/native_library_mac.mm View 1 2 3 4 5 4 chunks +7 lines, -6 lines 0 comments Download
M base/native_library_posix.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M base/native_library_unittest.cc View 1 3 2 chunks +2 lines, -4 lines 0 comments Download
M base/native_library_win.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M base/profiler/stack_sampling_profiler_unittest.cc View 1 2 3 4 3 chunks +4 lines, -5 lines 0 comments Download
M base/scoped_native_library_unittest.cc View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/widevine_cdm_component_installer.cc View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/load_library_perf_test.cc View 1 2 3 4 4 chunks +7 lines, -13 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M media/cdm/cdm_paths.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M media/cdm/cdm_paths.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M media/cdm/external_clear_key_test_helper.cc View 1 2 3 4 3 chunks +3 lines, -13 lines 0 comments Download
M net/udp/udp_socket_posix.cc View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/widevine/cdm/widevine_cdm_common.h View 1 2 3 4 1 chunk +2 lines, -9 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
Lei Zhang
Follow up to https://codereview.chromium.org/2042103002/
4 years, 6 months ago (2016-06-07 03:06:59 UTC) #2
xhwang
https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h#newcode94 base/native_library.h:94: // "mylib.dylib" on Mac. This comment needs to be ...
4 years, 6 months ago (2016-06-07 16:24:41 UTC) #5
Lei Zhang
https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h#newcode94 base/native_library.h:94: // "mylib.dylib" on Mac. On 2016/06/07 16:24:41, xhwang wrote: ...
4 years, 6 months ago (2016-06-10 22:09:29 UTC) #7
xhwang
https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h File base/native_library.h (right): https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h#newcode95 base/native_library.h:95: BASE_EXPORT std::string GetNativeLibraryName(StringPiece name); On 2016/06/10 22:09:29, Lei Zhang ...
4 years, 6 months ago (2016-06-10 23:27:27 UTC) #8
Lei Zhang
On 2016/06/10 23:27:27, xhwang wrote: > https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h > File base/native_library.h (right): > > https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h#newcode95 > ...
4 years, 6 months ago (2016-06-10 23:34:54 UTC) #9
Mark Mentovai
https://codereview.chromium.org/2048523002/diff/60001/chrome/browser/load_library_perf_test.cc File chrome/browser/load_library_perf_test.cc (right): https://codereview.chromium.org/2048523002/diff/60001/chrome/browser/load_library_perf_test.cc#newcode65 chrome/browser/load_library_perf_test.cc:65: // File name of the ClearKey CDM on different ...
4 years, 6 months ago (2016-06-10 23:40:00 UTC) #10
xhwang
On 2016/06/10 23:34:54, Lei Zhang wrote: > On 2016/06/10 23:27:27, xhwang wrote: > > https://codereview.chromium.org/2048523002/diff/20001/base/native_library.h ...
4 years, 6 months ago (2016-06-11 00:09:17 UTC) #11
Lei Zhang
On 2016/06/11 00:09:17, xhwang wrote: > UTF16ToUTF8() returns a bool and it can fail, so ...
4 years, 6 months ago (2016-06-13 19:10:07 UTC) #12
xhwang
Thanks for fixing all the CDM names! Yeah, a DCHECK and some comment about the ...
4 years, 6 months ago (2016-06-13 19:16:47 UTC) #13
Mark Mentovai
LGTM https://codereview.chromium.org/2048523002/diff/80001/base/scoped_native_library_unittest.cc File base/scoped_native_library_unittest.cc (right): https://codereview.chromium.org/2048523002/diff/80001/base/scoped_native_library_unittest.cc#newcode31 base/scoped_native_library_unittest.cc:31: FilePath path(base::ASCIIToUTF16(GetNativeLibraryName("ddraw"))); FilePath::FromUTF16Unsafe()? https://codereview.chromium.org/2048523002/diff/80001/net/udp/udp_socket_posix.cc File net/udp/udp_socket_posix.cc (right): https://codereview.chromium.org/2048523002/diff/80001/net/udp/udp_socket_posix.cc#newcode355 ...
4 years, 6 months ago (2016-06-13 19:29:03 UTC) #14
Lei Zhang
On 2016/06/13 19:16:47, xhwang wrote: > Yeah, a DCHECK and some comment about the expectation ...
4 years, 6 months ago (2016-06-13 21:30:34 UTC) #15
Lei Zhang
+pauljensen for net/
4 years, 6 months ago (2016-06-13 22:09:47 UTC) #17
pauljensen
net/ lgtm
4 years, 6 months ago (2016-06-14 11:11:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2048523002/120001
4 years, 6 months ago (2016-06-14 17:20:53 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-14 18:52:40 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 18:55:26 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/02c965bc53c59075e8f2453c6146e75782dd0c44
Cr-Commit-Position: refs/heads/master@{#399759}

Powered by Google App Engine
This is Rietveld 408576698