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

Unified Diff: content/browser/android/content_settings.cc

Issue 10827380: [Android] Implement WebSettings.{get|set}Allow{Content|File}Access. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/android/content_settings.cc
diff --git a/content/browser/android/content_settings.cc b/content/browser/android/content_settings.cc
index b023f2b1acd3e0621e335c83a5d30c5ff7d08b4d..a89a10df5dbab08c706fa2c1300e9fb7e8b68b91 100644
--- a/content/browser/android/content_settings.cc
+++ b/content/browser/android/content_settings.cc
@@ -74,6 +74,10 @@ struct ContentSettings::FieldIds {
GetFieldID(env, clazz, "mJavaScriptCanOpenWindowsAutomatically", "Z");
dom_storage_enabled =
GetFieldID(env, clazz, "mDomStorageEnabled", "Z");
+ allow_file_url_access =
+ GetFieldID(env, clazz, "mAllowFileUrlAccess", "Z");
+ allow_content_url_access =
+ GetFieldID(env, clazz, "mAllowContentUrlAccess", "Z");
}
// Field ids
@@ -95,6 +99,8 @@ struct ContentSettings::FieldIds {
jfieldID allow_file_access_from_file_urls;
jfieldID java_script_can_open_windows_automatically;
jfieldID dom_storage_enabled;
+ jfieldID allow_file_url_access;
+ jfieldID allow_content_url_access;
};
ContentSettings::ContentSettings(JNIEnv* env,

Powered by Google App Engine
This is Rietveld 408576698