DescriptionSafeBrowsing: allow WebView to customize the Help Center URL
This adds a 'plink' field to SBErrorDisplayOptions, allowing WebView
to specify its own plink (the p= URL query parameter) when visiting the
Help Center. This will allow the Help Center to differentiate between
Chrome and WebView and show appropriate information for each.
SBErrorDisplayOptions.plink is set to nullptr for Chrome, to indicate
that we should use a default value (p=cpn_safe_browsing).
Right now, the _wv suffix in the plink is ignored by the help center,
and is treated just like "cpn_safe_browsing" would be. So there should
be no change in high-level behavior, the URL will just vary slightly
between WebView and Chrome.
BUG=723125
Review-Url: https://codereview.chromium.org/2890703002
Cr-Commit-Position: refs/heads/master@{#473271}
Committed: https://chromium.googlesource.com/chromium/src/+/e952a3ef7450aae662c291c8c54986561ab65360
Patch Set 1 #
Total comments: 10
Patch Set 2 : Use std::string instead, no default plink value, move complex DisplayOptions constructors to cc file #Patch Set 3 : Fix comment in android_webview, fix BaseBlockingPage #Patch Set 4 : Fix breaking tests, just copy "cpn_safe_browsing" everywhere #Patch Set 5 : Add help_center_article_link comment, remove unused help_center_link_ from SafeBrowsingBlockingPage #Patch Set 6 : Rebase and fix compile errors, no logic change #Messages
Total messages: 41 (23 generated)
|