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

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: Rebased 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..efa32dfb04acc873b7ab88d2b7a9b21f52dc0066 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_access =
+ GetFieldID(env, clazz, "mAllowFileAccess", "Z");
+ allow_content_access =
+ GetFieldID(env, clazz, "mAllowContentAccess", "Z");
Satish 2012/08/20 10:16:57 Is this for 'content uri' access? If so, could the
mnaganov (inactive) 2012/08/20 13:32:55 Done.
}
// 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_access;
+ jfieldID allow_content_access;
};
ContentSettings::ContentSettings(JNIEnv* env,

Powered by Google App Engine
This is Rietveld 408576698