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

Issue 1842213002: Mac: Avoid deprecated use of ::Gestalt() in base/sys_info_mac (Closed)

Created:
4 years, 8 months ago by tapted
Modified:
4 years, 8 months ago
Reviewers:
erikchen, Nico
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, Elly Fong-Jones
Base URL:
https://chromium.googlesource.com/chromium/src.git@20160329-Mac-DeploymentTarget
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Avoid deprecated use of ::Gestalt() in base/sys_info_mac With a 10.9 deployment target, the compiler emits 'gestaltSystemVersionMajor' is deprecated: first deprecated in OS X 10.8 - Use NSProcessInfo's operatingSystemVersion property instead. Except, operatingSystemVersion was only added to NSProcessInfo in 10.10. Use it when it is available, and suppress the deprecation warning otherwise. BUG=547071 Committed: https://crrev.com/0ffa1e42503f51e413ef86eaf33dc8d94ef97bea Cr-Commit-Position: refs/heads/master@{#384419}

Patch Set 1 #

Total comments: 3

Patch Set 2 : comment #

Total comments: 2

Patch Set 3 : clearer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -108 lines) Patch
M base/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M base/base.gypi View 1 chunk +1 line, -1 line 0 comments Download
M base/mac/sdk_forward_declarations.h View 1 chunk +4 lines, -0 lines 0 comments Download
D base/sys_info_mac.cc View 1 chunk +0 lines, -99 lines 0 comments Download
A + base/sys_info_mac.mm View 1 2 4 chunks +27 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
tapted
Erik/Nico: WDYT? Maybe there's a neater way.. (cc elly fyi since we were chatting about ...
4 years, 8 months ago (2016-03-31 13:56:54 UTC) #3
Nico
https://codereview.chromium.org/1842213002/diff/1/base/sys_info_mac.mm File base/sys_info_mac.mm (right): https://codereview.chromium.org/1842213002/diff/1/base/sys_info_mac.mm#newcode43 base/sys_info_mac.mm:43: if ([processInfo respondsToSelector:@selector(operatingSystemVersion)]) { Didn't someone say yesterday that ...
4 years, 8 months ago (2016-03-31 13:59:16 UTC) #4
tapted
On 2016/03/31 13:59:16, Nico wrote: > https://codereview.chromium.org/1842213002/diff/1/base/sys_info_mac.mm > File base/sys_info_mac.mm (right): > > https://codereview.chromium.org/1842213002/diff/1/base/sys_info_mac.mm#newcode43 > ...
4 years, 8 months ago (2016-03-31 14:03:15 UTC) #5
Nico
lgtm with comment. Thanks! https://codereview.chromium.org/1842213002/diff/1/base/sys_info_mac.mm File base/sys_info_mac.mm (right): https://codereview.chromium.org/1842213002/diff/1/base/sys_info_mac.mm#newcode50 base/sys_info_mac.mm:50: #pragma clang diagnostic push Cool, ...
4 years, 8 months ago (2016-03-31 14:07:41 UTC) #6
tapted
https://codereview.chromium.org/1842213002/diff/1/base/sys_info_mac.mm File base/sys_info_mac.mm (right): https://codereview.chromium.org/1842213002/diff/1/base/sys_info_mac.mm#newcode50 base/sys_info_mac.mm:50: #pragma clang diagnostic push On 2016/03/31 14:07:41, Nico wrote: ...
4 years, 8 months ago (2016-03-31 18:07:40 UTC) #7
Nico
lgtm, thanks https://codereview.chromium.org/1842213002/diff/20001/base/sys_info_mac.mm File base/sys_info_mac.mm (right): https://codereview.chromium.org/1842213002/diff/20001/base/sys_info_mac.mm#newcode51 base/sys_info_mac.mm:51: // cases in 10.9, rely on ::Gestalt(..). ...
4 years, 8 months ago (2016-03-31 19:42:19 UTC) #8
tapted
https://codereview.chromium.org/1842213002/diff/20001/base/sys_info_mac.mm File base/sys_info_mac.mm (right): https://codereview.chromium.org/1842213002/diff/20001/base/sys_info_mac.mm#newcode51 base/sys_info_mac.mm:51: // cases in 10.9, rely on ::Gestalt(..). This can ...
4 years, 8 months ago (2016-03-31 20:44:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842213002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842213002/40001
4 years, 8 months ago (2016-03-31 20:49:04 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-31 22:28:40 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 22:30:31 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0ffa1e42503f51e413ef86eaf33dc8d94ef97bea
Cr-Commit-Position: refs/heads/master@{#384419}

Powered by Google App Engine
This is Rietveld 408576698