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

Issue 393923002: Workaround removal of __system_property_get in Android NDK. (Closed)

Created:
6 years, 5 months ago by rmcilroy
Modified:
6 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews, erikwright+watch_chromium.org, simonb (inactive)
Project:
chromium
Visibility:
Public.

Description

Workaround removal of __system_property_get in Android NDK. The 'L' release of Android will remove __system_property_get from the NDK. Until we can replace all calls of __system_property_get, this CL adds a temporary work-around for builds compiled against the 'L' API. The workaround involves creating a stub __system_property_get, which uses dlsym to dynamically load the address of the real __system_property_get symbol in libc.so (which is still available as a hidden symbol on the devices libc.so dispite having been removed from the NDK). BUG=392191, 393903 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284012

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Change to LazyInstance #

Patch Set 4 : Minor style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
M base/sys_info_android.cc View 1 2 3 2 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
rmcilroy
Nico, please take a look, thanks.
6 years, 5 months ago (2014-07-15 17:49:05 UTC) #1
Nico
How much work is it to remove all calls? This here looks pretty iffy.
6 years, 5 months ago (2014-07-16 19:57:33 UTC) #2
rmcilroy
On 2014/07/16 19:57:33, Nico (away) wrote: > How much work is it to remove all ...
6 years, 5 months ago (2014-07-16 20:32:07 UTC) #3
Nico
https://code.google.com/p/chromium/codesearch#search/&q=__system_property_get&sq=package:chromium&type=cs <- are these all hits? That doesn't look like that many. If each of ...
6 years, 5 months ago (2014-07-17 16:55:50 UTC) #4
rmcilroy
> https://code.google.com/p/chromium/codesearch#search/&q=__system_property_get... > <- are these all hits? That doesn't look like that many. > ...
6 years, 5 months ago (2014-07-17 18:41:52 UTC) #5
Nico
lgtm :-(
6 years, 5 months ago (2014-07-17 23:32:25 UTC) #6
rmcilroy
On 2014/07/17 23:32:25, Nico (away) wrote: > lgtm :-( Thanks Niko.
6 years, 5 months ago (2014-07-18 00:26:53 UTC) #7
rmcilroy
The CQ bit was checked by rmcilroy@chromium.org
6 years, 5 months ago (2014-07-18 00:26:54 UTC) #8
rmcilroy
The CQ bit was checked by rmcilroy@chromium.org
6 years, 5 months ago (2014-07-18 00:26:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/393923002/60001
6 years, 5 months ago (2014-07-18 00:28:27 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 05:42:00 UTC) #11
Message was sent while issue was closed.
Change committed as 284012

Powered by Google App Engine
This is Rietveld 408576698