Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Issue 2890703002: SafeBrowsing: allow WebView to customize the Help Center URL (Closed)

Created:
3 years, 7 months ago by Nate Fischer
Modified:
3 years, 7 months ago
CC:
android-webview-reviews_chromium.org, chromium-reviews, grt+watch_chromium.org, timvolodine, vakh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

SafeBrowsing: 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)
Nate Fischer
jialiul@: for SafeBrowsing-related changes sgurun@: for android_webview/
3 years, 7 months ago (2017-05-17 00:28:06 UTC) #4
sgurun-gerrit only
On 2017/05/17 00:28:06, Nate Fischer wrote: > jialiul@: for SafeBrowsing-related changes > sgurun@: for android_webview/ ...
3 years, 7 months ago (2017-05-17 02:51:48 UTC) #6
Jialiu Lin
https://codereview.chromium.org/2890703002/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2890703002/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode80 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:80: nullptr); nit: some in-line comment will be helpful. e.g. ...
3 years, 7 months ago (2017-05-17 15:47:46 UTC) #9
felt
https://codereview.chromium.org/2890703002/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2890703002/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode80 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:80: nullptr); On 2017/05/17 15:47:46, Jialiu Lin wrote: > nit: ...
3 years, 7 months ago (2017-05-17 15:55:52 UTC) #11
Nate Fischer
> in other words, how can we disable showing learn more completely? This is feasible. ...
3 years, 7 months ago (2017-05-17 21:35:30 UTC) #12
sgurun-gerrit only
On 2017/05/17 21:35:30, Nate Fischer wrote: > > in other words, how can we disable ...
3 years, 7 months ago (2017-05-17 21:39:45 UTC) #13
Nate Fischer
On 2017/05/17 21:39:45, sgurun wrote: > On 2017/05/17 21:35:30, Nate Fischer wrote: > > > ...
3 years, 7 months ago (2017-05-17 21:41:37 UTC) #14
chromium-reviews
usually the plinks are populated much later than when the code lands on trunk. they ...
3 years, 7 months ago (2017-05-17 21:42:09 UTC) #15
felt
ah my emailed comment was messed up, trying again: usually the plinks are populated much ...
3 years, 7 months ago (2017-05-17 21:43:50 UTC) #16
Nate Fischer
jialiul@ & felt@, PTAL sgurun@, I'll upload code for disabling learn-more-link in the next patchset. ...
3 years, 7 months ago (2017-05-17 22:34:43 UTC) #19
Nate Fischer
jialiul@ and sgurun@, PTAL. Per the offline email thread, it sounds like we won't need ...
3 years, 7 months ago (2017-05-19 00:13:32 UTC) #28
Jialiu Lin
LGTM Thanks!
3 years, 7 months ago (2017-05-19 00:16:01 UTC) #29
sgurun-gerrit only
On 2017/05/19 00:16:01, Jialiu Lin wrote: > LGTM Thanks! aw lgtm, thanks!
3 years, 7 months ago (2017-05-19 03:31:56 UTC) #30
Nate Fischer
Thanks, all!
3 years, 7 months ago (2017-05-19 16:48:03 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2890703002/80001
3 years, 7 months ago (2017-05-19 16:49:22 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/430602) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-19 17:03:31 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2890703002/100001
3 years, 7 months ago (2017-05-19 17:27:34 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-05-19 19:15:49 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e952a3ef7450aae662c291c8c549...

Powered by Google App Engine
This is Rietveld 408576698