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

Issue 14271024: [Android WebView] Move the most of WebSettings into AwSettings (Closed)

Created:
7 years, 8 months ago by mnaganov (inactive)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] Move the most of WebSettings into AwSettings Historically, WebSettings management is used to be in the ContentSettings class, while only WebView actually needs it. Chrome for Android is only interested in the value of the "JavaScript enabled" setting. This change leaves zoom-related settings intact, as moving them will require decoupling of the ZoomManager class from the ContentView* family of classes, which deserves a separate change. BUG=b/8296421 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196399

Patch Set 1 #

Patch Set 2 : Updated findbugs issues #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+1360 lines, -1755 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 5 chunks +7 lines, -10 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwSettings.java View 7 chunks +895 lines, -42 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientOnScaleChangedTest.java View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwQuotaManagerBridgeTest.java View 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 54 chunks +83 lines, -106 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwTargetDensityDpiTest.java View 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/ClientAddMessageToConsoleTest.java View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/ContentViewZoomTest.java View 8 chunks +18 lines, -17 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerTest.java View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/LoadDataWithBaseUrlTest.java View 7 chunks +7 lines, -7 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/NavigationHistoryTest.java View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/UserAgentTest.java View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/native/aw_settings.h View 2 chunks +13 lines, -10 lines 0 comments Download
M android_webview/native/aw_settings.cc View 4 chunks +308 lines, -48 lines 1 comment Download
M android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java View 1 chunk +1 line, -1 line 0 comments Download
M build/android/findbugs_filter/findbugs_known_bugs.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/android/content_settings.h View 2 chunks +1 line, -11 lines 0 comments Download
M content/browser/android/content_settings.cc View 3 chunks +8 lines, -385 lines 1 comment Download
M content/browser/android/content_view_core_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentSettings.java View 11 chunks +5 lines, -1065 lines 2 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 2 chunks +1 line, -5 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 5 chunks +2 lines, -16 lines 3 comments Download

Messages

Total messages: 13 (0 generated)
mnaganov (inactive)
Ben, PTAL! The change is quite big but is almost trivial. I have currently left ...
7 years, 8 months ago (2013-04-24 11:53:11 UTC) #1
joth
could quick drive-bys on content/ https://codereview.chromium.org/14271024/diff/3001/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java File content/public/android/java/src/org/chromium/content/browser/ContentSettings.java (right): https://codereview.chromium.org/14271024/diff/3001/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode237 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:237: return mJavaScriptEnabled; maybe for ...
7 years, 8 months ago (2013-04-24 17:07:43 UTC) #2
mnaganov (inactive)
https://codereview.chromium.org/14271024/diff/3001/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java File content/public/android/java/src/org/chromium/content/browser/ContentSettings.java (right): https://codereview.chromium.org/14271024/diff/3001/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode237 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:237: return mJavaScriptEnabled; On 2013/04/24 17:07:44, joth wrote: > maybe ...
7 years, 8 months ago (2013-04-24 17:41:37 UTC) #3
benm (inactive)
https://codereview.chromium.org/14271024/diff/3001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (left): https://codereview.chromium.org/14271024/diff/3001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#oldcode566 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:566: if (mPersonality == PERSONALITY_VIEW) { Ah, I remember that ...
7 years, 8 months ago (2013-04-24 18:02:15 UTC) #4
joth
On 24 April 2013 11:02, <benm@chromium.org> wrote: > > https://codereview.chromium.**org/14271024/diff/3001/** > content/public/android/java/**src/org/chromium/content/** > browser/ContentViewCore.java<https://codereview.chromium.org/14271024/diff/3001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java> > ...
7 years, 8 months ago (2013-04-24 20:05:45 UTC) #5
joth
PS I'm fine with removing PERSONALITY in a separate baby-step too. On 24 April 2013 ...
7 years, 8 months ago (2013-04-24 20:06:43 UTC) #6
benm (inactive)
lgtm Maybe update the CL description, the sentence "Chrome for Android is only interested in ...
7 years, 8 months ago (2013-04-25 11:46:31 UTC) #7
mnaganov (inactive)
On 2013/04/25 11:46:31, benm wrote: > lgtm > > Maybe update the CL description, the ...
7 years, 8 months ago (2013-04-25 12:25:13 UTC) #8
mnaganov (inactive)
Marcus, can you please make an OWNER's review for content/browser/android and content/public/android? It is only ...
7 years, 8 months ago (2013-04-25 12:28:16 UTC) #9
bulach
lgtm, but I have a radically different suggestion :) since you're just moving code around, ...
7 years, 8 months ago (2013-04-25 12:55:57 UTC) #10
mnaganov (inactive)
On 2013/04/25 12:55:57, bulach wrote: Thanks, Marcus! I'll consider your proposal! > lgtm, but I ...
7 years, 8 months ago (2013-04-25 13:15:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/14271024/3001
7 years, 8 months ago (2013-04-25 13:15:34 UTC) #12
commit-bot: I haz the power
7 years, 8 months ago (2013-04-25 15:10:06 UTC) #13
Message was sent while issue was closed.
Change committed as 196399

Powered by Google App Engine
This is Rietveld 408576698