media_router/certificate: migrate to crypto/hash APIs

MERGED2026crypto
2026. 8. 9.dev-hw 프로필 이미지dev-hw

crypto/sha2.h를 최신 표준인 crypto/hash.h로 교체하는 Cleanup 작업입니다.

문제 설명

crypto/sha2.h를 최신 표준인 crypto/hash.h로 교체하는 Cleanup 작업입니다.

수정한 폴더: components/media_router
(components/media_router/common/providers/cast/certificate/cast_crl.cc)

해결 내용

코드 수정

 - #include "crypto/sha2.h"
+ #include "crypto/hash.h"
 - std::string spki_hash =
 -       crypto::SHA256HashString(base::as_string_view(spki_tlv));
+ std::string spki_hash =
+       std::string(base::as_string_view(crypto::hash::Sha256(spki_tlv)));

테스트 방법

  • 빌드 확인시 성공
autoninja -C out/Default components_unittests

배운 점

이 컨트리뷰션을 통해 배운 점을 공유하세요.

  • cl upload 과정에서 Tree Closed 상태라 git cl presubmit 에서 오류가 발생했습니다.
    이를 통해 게릿에 업로드하는 용도의 검사 (git cl presubmit --upload) 를 알게되었습니다.
  • Gerrit 작업과정에 좀 더 익숙해졌습니다.

참고 자료