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

Issue 2814593002: WebView: add {set,get}SafeBrowsingEnabled per WebView (Closed)

Created:
3 years, 8 months ago by Nate Fischer
Modified:
3 years, 8 months ago
Reviewers:
sgurun-gerrit only
CC:
agrieve+watch_chromium.org, android-webview-reviews_chromium.org, chromium-reviews
Target Ref:
refs/heads/3029
Project:
chromium
Visibility:
Public.

Description

WebView: add {set,get}SafeBrowsingEnabled per WebView Add APIs to ContentSettingsAdapter to set/get SafeBrowsingEnabled, per WebView. When checking getSafeBrowsingEnabled, if SafeBrowsing hasn't been configured per WebView, default back to AwContentsStatics.getSafeBrowsingEnabled() (which corresponds to the manifest flag value). This change removes most checks to AwContentsStatics.getSafeBrowsingEnabled()--we must initialize static SafeBrowsing pieces since SafeBrowsing may be enabled per webview. If SafeBrowsing is disabled, we will skip actual URL checks by not adding the resource throttle. BUG=706631 Review-Url: https://codereview.chromium.org/2814593002 Cr-Commit-Position: refs/heads/master@{#463494} Committed: https://chromium.googlesource.com/chromium/src/+/385c5d07e57f7ae48f7b6f4eedb2b9850b75e47a

Patch Set 1 #

Patch Set 2 : Add javatests #

Total comments: 4

Patch Set 3 : Add methods to AwServiceWorkerController #

Patch Set 4 : Change service workers to just return manifest value #

Patch Set 5 : Remove proguard.flags TODO #

Total comments: 2

Patch Set 6 : Add comment about getSafeBrowsingEnabled() #

Patch Set 7 : Add comment about getSafeBrowsingEnabled() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -12 lines) Patch
M android_webview/apk/java/proguard.flags View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/browser/aw_contents_io_thread_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc View 4 chunks +15 lines, -3 lines 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/ContentSettingsAdapter.java View 1 chunk +10 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwBrowserContext.java View 1 chunk +1 line, -3 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java View 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwSettings.java View 3 chunks +26 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/SafeBrowsingTest.java View 1 1 chunk +38 lines, -0 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M android_webview/native/aw_contents_io_thread_client_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_contents_io_thread_client_impl.cc View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Nate Fischer
PTAL
3 years, 8 months ago (2017-04-10 22:25:27 UTC) #5
sgurun-gerrit only
https://codereview.chromium.org/2814593002/diff/20001/android_webview/apk/java/proguard.flags File android_webview/apk/java/proguard.flags (right): https://codereview.chromium.org/2814593002/diff/20001/android_webview/apk/java/proguard.flags#newcode19 android_webview/apk/java/proguard.flags:19: # TODO(ntfschr): remove this once Android O is released ...
3 years, 8 months ago (2017-04-11 00:38:52 UTC) #8
Nate Fischer
PTAL https://codereview.chromium.org/2814593002/diff/20001/android_webview/apk/java/proguard.flags File android_webview/apk/java/proguard.flags (right): https://codereview.chromium.org/2814593002/diff/20001/android_webview/apk/java/proguard.flags#newcode19 android_webview/apk/java/proguard.flags:19: # TODO(ntfschr): remove this once Android O is ...
3 years, 8 months ago (2017-04-11 00:58:02 UTC) #9
sgurun-gerrit only
lgtm with one nit https://codereview.chromium.org/2814593002/diff/80001/android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java File android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java (right): https://codereview.chromium.org/2814593002/diff/80001/android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java#newcode86 android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java:86: public boolean getSafeBrowsingEnabled() { this ...
3 years, 8 months ago (2017-04-11 01:06:57 UTC) #12
Nate Fischer
https://codereview.chromium.org/2814593002/diff/80001/android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java File android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java (right): https://codereview.chromium.org/2814593002/diff/80001/android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java#newcode86 android_webview/java/src/org/chromium/android_webview/AwServiceWorkerController.java:86: public boolean getSafeBrowsingEnabled() { On 2017/04/11 at 01:06:56, sgurun ...
3 years, 8 months ago (2017-04-11 01:12:41 UTC) #13
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/2814593002/100001
3 years, 8 months ago (2017-04-11 01:13:35 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 01:58:13 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/385c5d07e57f7ae48f7b6f4eedb2...

Powered by Google App Engine
This is Rietveld 408576698