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

Issue 10738003: src/crypto should build on the x86_64 architecture. (Closed)

Created:
8 years, 5 months ago by Mihai Maerean
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

src/crypto should build on the x86_64 architecture. This patch solves the build issues that are directly related to building crypto for the x86_64 architecture. BUG=136072 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149047

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : the same changes but with no warnings from cpplint. #

Total comments: 3

Patch Set 4 : Fixed: Nit: the second and third arguments need to be aligned with #

Total comments: 5

Patch Set 5 : used typedefs (to uintptr_t) for keys and items. changed password_data_count_'s type to int. #

Total comments: 1

Patch Set 6 : following Chromium style for comments. password_data_count_'s type will be changed separately (in r… #

Total comments: 3

Patch Set 7 : A single typedef and kDummySearchRef of type SecKeychainSearchRef. #

Total comments: 2

Patch Set 8 : MockKeychainItemType and C++ reinterpret_cast<SecKeychainSearchRef>. #

Total comments: 3

Patch Set 9 : Consistent identation. #

Patch Set 10 : #include stdint.h> for uintptr_t. #

Total comments: 1

Patch Set 11 : correct C include location. #

Total comments: 1

Patch Set 12 : added // static comment to MockKeychain::kDummySearchRef. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -42 lines) Patch
M crypto/mock_keychain_mac.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +32 lines, -16 lines 0 comments Download
M crypto/mock_keychain_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 19 chunks +49 lines, -26 lines 0 comments Download

Messages

Total messages: 54 (0 generated)
agl
(punting. This seems sane, but rsleevi or mark probably know enough OS X to say ...
8 years, 5 months ago (2012-07-11 16:46:49 UTC) #1
Ryan Sleevi
Hi Mihai, First, thanks for writing this. Since it looks like your first patch (based ...
8 years, 5 months ago (2012-07-11 17:52:46 UTC) #2
wtc
Review comments on patch set 1: 1. The original code seems to be using both ...
8 years, 5 months ago (2012-07-11 21:15:28 UTC) #3
Mark Mentovai
Ryan, please don’t remove me from any Mac 64-bit changes. I would like to see ...
8 years, 5 months ago (2012-07-12 18:47:08 UTC) #4
wtc
mark: it may be better for you or the original author of these files to ...
8 years, 5 months ago (2012-07-12 23:55:07 UTC) #5
Mihai Maerean
I have already signed a corporate CLA for contributing to open source projects and, also, ...
8 years, 5 months ago (2012-07-16 09:55:13 UTC) #6
Mihai Maerean
8 years, 5 months ago (2012-07-16 12:55:08 UTC) #7
Mihai Maerean
I have uploaded the new version with the changes as discussed previously.
8 years, 5 months ago (2012-07-16 12:59:12 UTC) #8
Mihai Maerean
8 years, 5 months ago (2012-07-16 13:52:09 UTC) #9
Mihai Maerean
the same changes but with no warnings from cpplint.
8 years, 5 months ago (2012-07-16 13:53:50 UTC) #10
Mark Mentovai
https://chromiumcodereview.appspot.com/10738003/diff/11004/AUTHORS File AUTHORS (right): https://chromiumcodereview.appspot.com/10738003/diff/11004/AUTHORS#newcode196 AUTHORS:196: Mihai Maerean <mmaerean@adobe.com> I’m checking on the status of ...
8 years, 5 months ago (2012-07-16 15:39:40 UTC) #11
mal
mmaerean@adobe.com is not listed in Adobe's authorized contributors list. I'll start a thread with our ...
8 years, 5 months ago (2012-07-16 18:10:26 UTC) #12
wtc
Review comments on patch set 3: How do I do a 64-bit build on Mac ...
8 years, 5 months ago (2012-07-16 23:00:40 UTC) #13
Mihai Maerean
Q: How do I do a 64-bit build on Mac OS X to test this ...
8 years, 5 months ago (2012-07-17 08:32:02 UTC) #14
Mihai Maerean
8 years, 5 months ago (2012-07-17 09:20:32 UTC) #15
wtc
Mihai: thank you for the build instructions. For third_party/mach_override/mach_override.c, just add parentheses around the '&' ...
8 years, 5 months ago (2012-07-18 02:34:58 UTC) #16
Mihai Maerean
Regarding the warning related to the & operator in third_party/mach_override/mach_override.c, should I add the fix ...
8 years, 5 months ago (2012-07-18 14:02:50 UTC) #17
Mihai Maerean
The size of "unsigned int" is compiler specific and won't always be able to store ...
8 years, 5 months ago (2012-07-18 14:03:55 UTC) #18
Mark Mentovai
For mock_keychain, like Wan-Teh I’m at a loss to understand why you’ve widened the item ...
8 years, 5 months ago (2012-07-18 15:16:37 UTC) #19
wtc
On 2012/07/18 15:16:37, Mark Mentovai wrote: > It would be helpful to share the precise ...
8 years, 5 months ago (2012-07-18 17:43:20 UTC) #20
Ryan Sleevi
On 2012/07/18 17:43:20, wtc wrote: > On 2012/07/18 15:16:37, Mark Mentovai wrote: > > It ...
8 years, 5 months ago (2012-07-18 17:47:20 UTC) #21
Mark Mentovai
I see. I would prefer for the underlying type to be uintptr_t in that case. ...
8 years, 5 months ago (2012-07-18 17:57:52 UTC) #22
Mark Mentovai
Rather than spewing uintptr_t everywhere, I would advise a MockKeychainItemType typedef to the appropriate type ...
8 years, 5 months ago (2012-07-18 18:01:14 UTC) #23
wtc
Review comments on patch set 4: I am fine with either approach. I suggest two ...
8 years, 5 months ago (2012-07-18 19:03:16 UTC) #24
Mihai Maerean
On 2012/07/18 18:01:14, Mark Mentovai wrote: > Rather than spewing uintptr_t everywhere, I would advise ...
8 years, 5 months ago (2012-07-19 11:32:24 UTC) #25
Mihai Maerean
https://chromiumcodereview.appspot.com/10738003/diff/15006/crypto/mock_keychain_mac.h File crypto/mock_keychain_mac.h (right): https://chromiumcodereview.appspot.com/10738003/diff/15006/crypto/mock_keychain_mac.h#newcode215 crypto/mock_keychain_mac.h:215: mutable std::set<unsigned int> added_via_api_; True, added_via_api_ uses the same ...
8 years, 5 months ago (2012-07-19 11:33:26 UTC) #26
Mihai Maerean
8 years, 5 months ago (2012-07-19 14:06:37 UTC) #27
Mihai Maerean
On 2012/07/18 15:16:37, Mark Mentovai wrote: > For mach_override, we’d want to send any changes ...
8 years, 5 months ago (2012-07-19 15:05:52 UTC) #28
Mark Mentovai
Excellent. Once commited upstream, we need to import a new copy of mach_inject to third_party/mach_override, ...
8 years, 5 months ago (2012-07-19 15:16:25 UTC) #29
Mihai Maerean
On 2012/07/19 15:16:25, Mark Mentovai wrote: > Excellent. Once commited upstream, we need to import ...
8 years, 5 months ago (2012-07-19 15:23:32 UTC) #30
Mark Mentovai
Either of us can do it. It’s just a normal reviewable committable change. If you’d ...
8 years, 5 months ago (2012-07-19 15:25:40 UTC) #31
Mihai Maerean
On 2012/07/19 15:25:40, Mark Mentovai wrote: > Either of us can do it. It’s just ...
8 years, 5 months ago (2012-07-19 16:30:14 UTC) #32
Mark Mentovai
That’s expected. Code review serves as the audit and will catch anything undesirable.
8 years, 5 months ago (2012-07-19 16:37:26 UTC) #33
wtc
https://chromiumcodereview.appspot.com/10738003/diff/15006/crypto/mock_keychain_mac.h File crypto/mock_keychain_mac.h (right): https://chromiumcodereview.appspot.com/10738003/diff/15006/crypto/mock_keychain_mac.h#newcode225 crypto/mock_keychain_mac.h:225: mutable unsigned int password_data_count_; On 2012/07/19 11:33:26, Mihai Maerean ...
8 years, 5 months ago (2012-07-19 17:59:26 UTC) #34
stuartmorgan
I don't have any opinion on the details of the types here; as Mark said, ...
8 years, 5 months ago (2012-07-19 18:35:14 UTC) #35
Mihai Maerean
8 years, 5 months ago (2012-07-20 12:24:10 UTC) #36
Mark Mentovai
Ordinarily, we don’t just send out blank mails on a code review thread, except for ...
8 years, 5 months ago (2012-07-20 12:33:26 UTC) #37
wtc
Review comments on patch set 6: mark: I believe Mihai meant to ask you to ...
8 years, 5 months ago (2012-07-20 17:05:21 UTC) #38
Mihai Maerean
https://chromiumcodereview.appspot.com/10738003/diff/33001/crypto/mock_keychain_mac.h File crypto/mock_keychain_mac.h (right): https://chromiumcodereview.appspot.com/10738003/diff/33001/crypto/mock_keychain_mac.h#newcode22 crypto/mock_keychain_mac.h:22: typedef uintptr_t MockKeychainItemType; On 2012/07/20 17:05:21, wtc wrote: > ...
8 years, 5 months ago (2012-07-23 11:15:33 UTC) #39
Mihai Maerean
I have uploaded a new patch set: A single typedef and kDummySearchRef of type SecKeychainSearchRef.
8 years, 5 months ago (2012-07-23 11:27:22 UTC) #40
Mihai Maerean
On 2012/07/19 15:16:25, Mark Mentovai wrote: > Excellent. Once commited upstream, we need to import ...
8 years, 5 months ago (2012-07-23 13:11:24 UTC) #41
wtc
Review comments on patch set 7: https://chromiumcodereview.appspot.com/10738003/diff/33001/crypto/mock_keychain_mac.cc File crypto/mock_keychain_mac.cc (right): https://chromiumcodereview.appspot.com/10738003/diff/33001/crypto/mock_keychain_mac.cc#newcode99 crypto/mock_keychain_mac.cc:99: SecKeychainAttribute* attribute = ...
8 years, 5 months ago (2012-07-23 18:22:01 UTC) #42
Mark Mentovai
Note that the CLA stuff has all been addressed, and we can commit this once ...
8 years, 5 months ago (2012-07-23 21:46:57 UTC) #43
Mihai Maerean
On 2012/07/23 18:22:01, wtc wrote: > Please use C++ reinterpret_cast<SecKeychainSearchRef>. > I think it's better ...
8 years, 5 months ago (2012-07-24 09:03:36 UTC) #44
Mark Mentovai
https://chromiumcodereview.appspot.com/10738003/diff/28005/crypto/mock_keychain_mac.cc File crypto/mock_keychain_mac.cc (right): https://chromiumcodereview.appspot.com/10738003/diff/28005/crypto/mock_keychain_mac.cc#newcode192 crypto/mock_keychain_mac.cc:192: reinterpret_cast<MockKeychainItemType>(itemRef) - 1; Continuation lines are indented by 4 ...
8 years, 5 months ago (2012-07-24 13:31:13 UTC) #45
Mihai Maerean
On 2012/07/24 13:31:13, Mark Mentovai wrote: > When a for construct grows unwieldy like this ...
8 years, 5 months ago (2012-07-24 15:15:12 UTC) #46
stuartmorgan
On 2012/07/24 15:15:12, Mihai Maerean wrote: > Just my $0.02: the 80 characters limit for ...
8 years, 5 months ago (2012-07-24 15:22:02 UTC) #47
Mark Mentovai
Thank you for your input. https://chromiumcodereview.appspot.com/10738003/diff/25005/crypto/mock_keychain_mac.h File crypto/mock_keychain_mac.h (right): https://chromiumcodereview.appspot.com/10738003/diff/25005/crypto/mock_keychain_mac.h#newcode10 crypto/mock_keychain_mac.h:10: #include <stdint.h> C system ...
8 years, 5 months ago (2012-07-24 15:30:00 UTC) #48
Mihai Maerean
I have fixed the location of C header include. gcl upload calls "presubmit upload checks" ...
8 years, 5 months ago (2012-07-24 15:42:42 UTC) #49
Mark Mentovai
LGTM. Wan-Teh, since you also reviewed this change carefully: are you satisfied with it now?
8 years, 5 months ago (2012-07-24 15:45:07 UTC) #50
wtc
Patch set 11 LGTM. https://chromiumcodereview.appspot.com/10738003/diff/28006/crypto/mock_keychain_mac.cc File crypto/mock_keychain_mac.cc (right): https://chromiumcodereview.appspot.com/10738003/diff/28006/crypto/mock_keychain_mac.cc#newcode11 crypto/mock_keychain_mac.cc:11: const SecKeychainSearchRef MockKeychain::kDummySearchRef = Nit: ...
8 years, 4 months ago (2012-07-26 19:07:00 UTC) #51
Mihai Maerean
On 2012/07/26 19:07:00, wtc wrote: > Patch set 11 LGTM. > > crypto/mock_keychain_mac.cc:11: const SecKeychainSearchRef ...
8 years, 4 months ago (2012-07-30 08:34:53 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmaerean@adobe.com/10738003/40001
8 years, 4 months ago (2012-07-30 19:16:00 UTC) #53
commit-bot: I haz the power
8 years, 4 months ago (2012-07-30 22:11:14 UTC) #54
Change committed as 149047

Powered by Google App Engine
This is Rietveld 408576698