|
|
Created:
6 years, 10 months ago by Lei Zhang Modified:
6 years, 10 months ago Reviewers:
wtc CC:
chromium-reviews Base URL:
svn://chrome-svn/chrome/trunk/src/ Visibility:
Public. |
DescriptionUse file_util::GetFileSystemType() in crypto/nss_util.cc.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248923
Patch Set 1 #Patch Set 2 : fix build #
Total comments: 6
Patch Set 3 : address comment #
Total comments: 1
Patch Set 4 : fix typo #Messages
Total messages: 23 (0 generated)
Patch set 2 LGTM. Thanks. Please omit the BaseTimeToPRTime change from this CL. https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.cc#newco... crypto/nss_util.cc:16: #if defined(OS_OPENBSD) I would just have OS_OPENBSD use file_util::GetFileSystemType also. If people are still porting Chromium to OpenBSD, they can implement file_util::GetFileSystemType for OpenBSD. But your change is fine by me, too. https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.cc#newco... crypto/nss_util.cc:916: #endif // defined(ARCH_CPU_X86_64) Nit: I usually omit this kind of comment when the ifdef'd section is very short. If you add this comment, you should also add a comment to the #endif on line 913 for consistency. https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.h File crypto/nss_util.h (right): https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.h#newcod... crypto/nss_util.h:151: CRYPTO_EXPORT int64 BaseTimeToPRTime(const base::Time& time); Are you sure this change is necessary? base::Time can be passed by value very cheaply, and base/time/time.h itself passes Time, TimeTicks, and TimeDelta by value.
https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.cc#newco... crypto/nss_util.cc:16: #if defined(OS_OPENBSD) On 2014/02/04 01:26:02, wtc wrote: > > I would just have OS_OPENBSD use file_util::GetFileSystemType also. If people > are still porting Chromium to OpenBSD, they can implement > file_util::GetFileSystemType for OpenBSD. > > But your change is fine by me, too. GetFileSystemType is Linux-only right now. I don't know who is actively working on OpenBSD support, so I'm going to leave it alone. https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.cc#newco... crypto/nss_util.cc:916: #endif // defined(ARCH_CPU_X86_64) On 2014/02/04 01:26:02, wtc wrote: > > Nit: I usually omit this kind of comment when the ifdef'd section is very short. > > If you add this comment, you should also add a comment to the #endif on line 913 > for consistency. I added it to line 913 as well. Generally I omit it too, but when there's nested #if's, it's hard to make out which #endif corresponds to which #if. https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.h File crypto/nss_util.h (right): https://codereview.chromium.org/147933003/diff/20001/crypto/nss_util.h#newcod... crypto/nss_util.h:151: CRYPTO_EXPORT int64 BaseTimeToPRTime(const base::Time& time); On 2014/02/04 01:26:02, wtc wrote: > > Are you sure this change is necessary? base::Time can be passed by value very > cheaply, and base/time/time.h itself passes Time, TimeTicks, and TimeDelta by > value. It just stood out since we generally pass by const-ref. Reverted.
The CQ bit was checked by thestig@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/147933003/70001
Patch set 3 has a typo. https://codereview.chromium.org/147933003/diff/70001/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/147933003/diff/70001/crypto/nss_util.cc#newco... crypto/nss_util.cc:913: #endif // defined(ARCH_CPU_ARMEL) This comment should say "// defined(__ARM_PCS_VFP)".
The CQ bit was unchecked by thestig@chromium.org
On 2014/02/04 01:40:43, wtc wrote: > Patch set 3 has a typo. > > https://codereview.chromium.org/147933003/diff/70001/crypto/nss_util.cc > File crypto/nss_util.cc (right): > > https://codereview.chromium.org/147933003/diff/70001/crypto/nss_util.cc#newco... > crypto/nss_util.cc:913: #endif // defined(ARCH_CPU_ARMEL) > > This comment should say "// defined(__ARM_PCS_VFP)". Done. Matching #if's is hard.
The CQ bit was checked by thestig@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/147933003/180001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, check_deps2git, chrome_elf_unittests, chromedriver_unittests, components_unittests, compositor_unittests, content_browsertests, content_unittests, crypto_unittests, events_unittests, google_apis_unittests, gpu_unittests, installer_util_unittests, interactive_ui_tests, ipc_tests, jingle_unittests, media_unittests, mini_installer_test, nacl_integration, net_unittests, ppapi_unittests, printing_unittests, remoting_unittests, sql_unittests, sync_integration_tests, sync_unit_tests, telemetry_perf_unittests, telemetry_unittests, unit_tests, views_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
The CQ bit was checked by thestig@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/147933003/180001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on ios_dbg_simulator for step(s) url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_si...
The CQ bit was checked by thestig@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/147933003/180001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...
The CQ bit was checked by thestig@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/147933003/180001
Message was sent while issue was closed.
Change committed as 248923 |