| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/android/feature_utilities.h" | 5 #include "chrome/browser/android/feature_utilities.h" |
| 6 | 6 |
| 7 #include "jni/FeatureUtilities_jni.h" | 7 #include "jni/FeatureUtilities_jni.h" |
| 8 | 8 |
| 9 #include "sql/connection.h" | |
| 10 | |
| 11 namespace { | 9 namespace { |
| 12 bool document_mode_enabled = false; | 10 bool document_mode_enabled = false; |
| 13 bool custom_tab_visible = false; | 11 bool custom_tab_visible = false; |
| 14 bool is_in_multi_window_mode = false; | 12 bool is_in_multi_window_mode = false; |
| 15 } // namespace | 13 } // namespace |
| 16 | 14 |
| 17 namespace chrome { | 15 namespace chrome { |
| 18 namespace android { | 16 namespace android { |
| 19 | 17 |
| 20 RunningModeHistogram GetDocumentModeValue() { | 18 RunningModeHistogram GetDocumentModeValue() { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 jboolean visible) { | 43 jboolean visible) { |
| 46 custom_tab_visible = visible; | 44 custom_tab_visible = visible; |
| 47 } | 45 } |
| 48 | 46 |
| 49 static void SetIsInMultiWindowMode(JNIEnv* env, | 47 static void SetIsInMultiWindowMode(JNIEnv* env, |
| 50 const JavaParamRef<jclass>& clazz, | 48 const JavaParamRef<jclass>& clazz, |
| 51 jboolean j_is_in_multi_window_mode) { | 49 jboolean j_is_in_multi_window_mode) { |
| 52 is_in_multi_window_mode = j_is_in_multi_window_mode; | 50 is_in_multi_window_mode = j_is_in_multi_window_mode; |
| 53 } | 51 } |
| 54 | 52 |
| 55 static void SetSqlMmapDisabledByDefault(JNIEnv* env, | |
| 56 const JavaParamRef<jclass>& clazz) { | |
| 57 sql::Connection::set_mmap_disabled_by_default(); | |
| 58 } | |
| 59 | |
| 60 bool RegisterFeatureUtilities(JNIEnv* env) { | 53 bool RegisterFeatureUtilities(JNIEnv* env) { |
| 61 return RegisterNativesImpl(env); | 54 return RegisterNativesImpl(env); |
| 62 } | 55 } |
| OLD | NEW |