Use |IsOriginSecure| for mark-HTTP-nonsecure field trial
When the flag or field trial is set such that non-secure origins will be marked as dubious/non-secure, use |IsOriginSecure| to determine whether an origin is non-secure, instead of simply treating http:// and ftp:// as non-secure. This means that http://nytimes.com will be marked as dubious/non-secure, but not http://localhost (for example). BUG=487499 TEST=Enable the "Mark non-secure as non-secure" flag in chrome://flags. Visit http://nytimes.com and observe that the lock icon is red and crossed out. Visit an http:// URL on localhost and observe that the lock icon is neutral. Review URL: https://codereview.chromium.org/1143503003 Cr-Commit-Position: refs/heads/master@{#329774}
Showing
Please register or sign in to comment