Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/android/feature_utilities.h" | |
| 6 | |
| 7 #include "jni/FeatureUtilities_jni.h" | |
| 8 | |
| 9 namespace chrome { | |
| 10 namespace android { | |
| 11 | |
| 12 static bool document_mode_enabled = false; | |
|
Ted C
2014/10/17 18:12:11
hmm...should this be an empty namespace to keep it
Maria
2014/10/17 21:44:50
Done.
| |
| 13 | |
| 14 int GetDocumentModeValue() { | |
| 15 return document_mode_enabled ? DOCUMENT_MODE : TABBED_MODE; | |
| 16 } | |
| 17 | |
| 18 } // namespace android | |
| 19 } // namespace chrome | |
| 20 | |
| 21 | |
| 22 static void SetDocumentModeEnabled(JNIEnv* env, | |
| 23 jclass clazz, | |
| 24 jboolean enabled) { | |
| 25 chrome::android::document_mode_enabled = enabled; | |
| 26 } | |
| 27 | |
| 28 bool RegisterFeatureUtilities(JNIEnv* env) { | |
| 29 return RegisterNativesImpl(env); | |
| 30 } | |
| OLD | NEW |