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

Issue 11411229: [Android] Implement WebSettings.setAppCache{Enabled|Path} (Closed)

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

Description

[Android] Implement WebSettings.setAppCache{Enabled|Path} AppCacheEnabled is mapped onto WebPreferences.application_cache_enabled, which goes directly into WebKit Settings. AppCachePath is only used as a flag to enable AppCache. We can't make use of the full path given, because in Chromium the Application Cache directory lives inside the browser context (profile). The tests added trigger a DCHECK in disk cache, unless the profile is empty when the test starts. This makes impossible to run them both now, so only one of them is enabled for now. Android CTS tests WebSettings.testAppCache{Disabled|Enabled} are passing with this patch. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171074

Patch Set 1 #

Patch Set 2 : Fix findbugs issues #

Patch Set 3 : Ready #

Patch Set 4 : Ready for review #

Patch Set 5 : Removed a spurious include #

Total comments: 9

Patch Set 6 : Comments addressed #

Total comments: 8

Patch Set 7 : The final version #

Total comments: 2

Patch Set 8 : Comments addressed #

Messages

Total messages: 15 (0 generated)
mnaganov (inactive)
Guys, please take a look. I plan to deal with the cache-related crash, as I ...
8 years ago (2012-11-30 17:11:16 UTC) #1
boliu
https://codereview.chromium.org/11411229/diff/9001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/11411229/diff/9001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode2280 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:2280: clearCacheOnUiThread(views.getContents1(), true); clearCache is global to this app, only ...
8 years ago (2012-11-30 17:46:27 UTC) #2
joth
(didn't read whole patch) https://codereview.chromium.org/11411229/diff/9001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/11411229/diff/9001/android_webview/browser/aw_content_browser_client.cc#newcode118 android_webview/browser/aw_content_browser_client.cc:118: // instead AppCache can be ...
8 years ago (2012-11-30 22:16:59 UTC) #3
mnaganov (inactive)
Thanks for the comments! https://codereview.chromium.org/11411229/diff/9001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/11411229/diff/9001/android_webview/browser/aw_content_browser_client.cc#newcode118 android_webview/browser/aw_content_browser_client.cc:118: // instead AppCache can be ...
8 years ago (2012-12-03 15:07:36 UTC) #4
boliu
lgtm but should wait for joth https://codereview.chromium.org/11411229/diff/9001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/11411229/diff/9001/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode2280 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:2280: clearCacheOnUiThread(views.getContents1(), true); On ...
8 years ago (2012-12-03 17:14:43 UTC) #5
mnaganov (inactive)
https://codereview.chromium.org/11411229/diff/14/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/11411229/diff/14/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode847 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:847: return mPluginState == PluginState.OFF; On 2012/12/03 17:14:43, boliu wrote: ...
8 years ago (2012-12-03 17:19:46 UTC) #6
joth
lgtm https://codereview.chromium.org/11411229/diff/14/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/11411229/diff/14/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode91 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:91: // provided. However, we doesn't use the path, ...
8 years ago (2012-12-04 00:15:42 UTC) #7
mnaganov (inactive)
Thanks! https://codereview.chromium.org/11411229/diff/14/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/11411229/diff/14/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode91 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:91: // provided. However, we doesn't use the path, ...
8 years ago (2012-12-04 11:11:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/11411229/12003
8 years ago (2012-12-04 11:24:49 UTC) #9
commit-bot: I haz the power
Presubmit check for 11411229-12003 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-04 11:24:57 UTC) #10
mnaganov (inactive)
Marcus, please take a look at the content/public/android stuff
8 years ago (2012-12-04 11:26:57 UTC) #11
bulach
lgtm, small suggestion: https://codereview.chromium.org/11411229/diff/12003/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/11411229/diff/12003/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode2311 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:2311: Thread.sleep(1000); please the same comments from ...
8 years ago (2012-12-04 17:16:49 UTC) #12
mnaganov (inactive)
Thanks! https://codereview.chromium.org/11411229/diff/12003/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java (right): https://codereview.chromium.org/11411229/diff/12003/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java#newcode2311 android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java:2311: Thread.sleep(1000); On 2012/12/04 17:16:49, bulach wrote: > please ...
8 years ago (2012-12-04 18:08:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/11411229/2006
8 years ago (2012-12-04 18:10:59 UTC) #14
commit-bot: I haz the power
8 years ago (2012-12-04 22:55:44 UTC) #15
Message was sent while issue was closed.
Change committed as 171074

Powered by Google App Engine
This is Rietveld 408576698