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

Unified Diff: chrome/browser/android/feature_utilities.cc

Issue 1637683003: Add flag to disable mmap in all sql connection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: chrome/browser/android/feature_utilities.cc
diff --git a/chrome/browser/android/feature_utilities.cc b/chrome/browser/android/feature_utilities.cc
index 23111c678d8a819788aecff9e007fa7b2c1cbbcb..41ff28209f5d183c70f1fba90fb869ed545d2c54 100644
--- a/chrome/browser/android/feature_utilities.cc
+++ b/chrome/browser/android/feature_utilities.cc
@@ -6,6 +6,8 @@
#include "jni/FeatureUtilities_jni.h"
+#include "sql/connection.h"
+
namespace {
bool document_mode_enabled = false;
bool custom_tab_visible = false;
@@ -39,6 +41,11 @@ static void SetCustomTabVisible(JNIEnv* env,
custom_tab_visible = visible;
}
+static void SetSqlMmapDisabledByDefault(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz) {
+ sql::Connection::set_mmap_disabled_by_default();
+}
+
bool RegisterFeatureUtilities(JNIEnv* env) {
return RegisterNativesImpl(env);
}

Powered by Google App Engine
This is Rietveld 408576698