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

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

Issue 11411229: [Android] Implement WebSettings.setAppCache{Enabled|Path} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 8 years 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 f381672b00874500481a0eb9e365aa406c8f8a2c..afffba574b989a213dc1fe449146f8bd24008018 100644
--- a/content/browser/android/content_settings.cc
+++ b/content/browser/android/content_settings.cc
@@ -248,6 +248,9 @@ void ContentSettings::SyncFromNativeImpl() {
Java_ContentSettings_setPluginsDisabled(env, obj, !prefs.plugins_enabled);
CheckException(env);
+ // We don't need to sync AppCache settings to Java, because there are
+ // no getters for them in the API.
+
env->SetBooleanField(
obj,
field_ids_->dom_storage_enabled,
@@ -351,6 +354,9 @@ void ContentSettings::SyncToNativeImpl() {
prefs.plugins_enabled = !Java_ContentSettings_getPluginsDisabled(env, obj);
+ prefs.application_cache_enabled =
+ Java_ContentSettings_getAppCacheEnabled(env, obj);
+
prefs.local_storage_enabled = env->GetBooleanField(
obj, field_ids_->dom_storage_enabled);

Powered by Google App Engine
This is Rietveld 408576698