Use base::Optional for ResourceResponse::security_details_

Even if the SecurityStyle is Authenticated, SecurityDetails is not set while
loading "chrome://" URL resources. In that case, checking SecurityStyle in is not sufficient.

Thic CL changes ResourceResponse::security_details_ to use base::Optional.
So, we can check whether SecurityDetails is set or not.

Bug: 976192
Change-Id: Iae112de8121ed4e6a95bbb9aacd93a27623ffefa
Commit-Queue: Tsuyoshi Horo <>
Reviewed-by: Kinuko Yasuda <>
Reviewed-by: Yutaka Hirano <>
Cr-Commit-Position: refs/heads/master@{#672023}
6 files changed