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

Issue 10827380: [Android] Implement WebSettings.{get|set}Allow{Content|File}Access. (Closed)

Created:
8 years, 4 months ago by mnaganov (inactive)
Modified:
8 years, 4 months ago
Reviewers:
joth, Satish
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, brettw-cc_chromium.org
Visibility:
Public.

Description

[Android] Implement WebSettings.{get|set}Allow{Content|File}Access. This is as much as we can put upstream now. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152318

Patch Set 1 #

Total comments: 11

Patch Set 2 : Comments addressed #

Patch Set 3 : Minor fix #

Patch Set 4 : Rebased #

Total comments: 4

Patch Set 5 : Comments addressed #

Total comments: 2

Patch Set 6 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -0 lines) Patch
M base/android/javatests/src/org/chromium/base/test/TestFileUtil.java View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M content/browser/android/content_settings.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentSettings.java View 1 2 3 4 5 2 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mnaganov (inactive)
8 years, 4 months ago (2012-08-16 15:59:44 UTC) #1
joth
https://chromiumcodereview.appspot.com/10827380/diff/1/base/android/javatests/src/org/chromium/base/test/TestContentProviderClient.java File base/android/javatests/src/org/chromium/base/test/TestContentProviderClient.java (right): https://chromiumcodereview.appspot.com/10827380/diff/1/base/android/javatests/src/org/chromium/base/test/TestContentProviderClient.java#newcode11 base/android/javatests/src/org/chromium/base/test/TestContentProviderClient.java:11: import android.content.Context; this test can't live in 'base' if ...
8 years, 4 months ago (2012-08-16 18:52:45 UTC) #2
mnaganov (inactive)
Thanks, Jonathan! Have you seen the full changelist (downstream) 23680? I added you as a ...
8 years, 4 months ago (2012-08-17 12:46:02 UTC) #3
joth
lgtm https://chromiumcodereview.appspot.com/10827380/diff/1/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://chromiumcodereview.appspot.com/10827380/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode49 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:49: // be modified through the ContentSettings instance. On ...
8 years, 4 months ago (2012-08-17 16:57:34 UTC) #4
mnaganov (inactive)
Satish, it seems I need your LGTM. This is what the script says: Missing LGTM ...
8 years, 4 months ago (2012-08-20 08:46:41 UTC) #5
Satish
https://chromiumcodereview.appspot.com/10827380/diff/10001/base/android/javatests/src/org/chromium/base/test/TestFileUtil.java File base/android/javatests/src/org/chromium/base/test/TestFileUtil.java (right): https://chromiumcodereview.appspot.com/10827380/diff/10001/base/android/javatests/src/org/chromium/base/test/TestFileUtil.java#newcode33 base/android/javatests/src/org/chromium/base/test/TestFileUtil.java:33: "</body></html>").getBytes()); this is going to get the encoded string ...
8 years, 4 months ago (2012-08-20 10:16:57 UTC) #6
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10827380/diff/10001/base/android/javatests/src/org/chromium/base/test/TestFileUtil.java File base/android/javatests/src/org/chromium/base/test/TestFileUtil.java (right): https://chromiumcodereview.appspot.com/10827380/diff/10001/base/android/javatests/src/org/chromium/base/test/TestFileUtil.java#newcode33 base/android/javatests/src/org/chromium/base/test/TestFileUtil.java:33: "</body></html>").getBytes()); On 2012/08/20 10:16:57, Satish wrote: > this is ...
8 years, 4 months ago (2012-08-20 13:32:55 UTC) #7
Satish
lgtm https://chromiumcodereview.appspot.com/10827380/diff/12003/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://chromiumcodereview.appspot.com/10827380/diff/12003/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java#newcode85 content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:85: private boolean mAllowFileAccess = true; it isn't clear ...
8 years, 4 months ago (2012-08-20 13:37:41 UTC) #8
mnaganov (inactive)
8 years, 4 months ago (2012-08-20 14:23:05 UTC) #9
https://chromiumcodereview.appspot.com/10827380/diff/12003/content/public/and...
File
content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
(right):

https://chromiumcodereview.appspot.com/10827380/diff/12003/content/public/and...
content/public/android/java/src/org/chromium/content/browser/ContentSettings.java:85:
private boolean mAllowFileAccess = true;
On 2012/08/20 13:37:41, Satish wrote:
> it isn't clear from the code below if this is for file:// urls or just
accessing
> files elsewhere in contentview. If it is the former, suggest renaming this to
> use FileUrl like you did with ContentUrl

Sure. I'm sorry I didn't think about this myself. Fixed.

Powered by Google App Engine
This is Rietveld 408576698