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

Side by Side Diff: chrome/browser/android/feature_utilities.cc

Issue 1927443002: Remove Android Work Chrome code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missed line. Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698