Chromium Code Reviews| Index: chrome/browser/android/feature_utilities.cc |
| diff --git a/chrome/browser/android/feature_utilities.cc b/chrome/browser/android/feature_utilities.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..54261aaac2ff9c5d99362e1909358951dbb823b2 |
| --- /dev/null |
| +++ b/chrome/browser/android/feature_utilities.cc |
| @@ -0,0 +1,30 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/android/feature_utilities.h" |
| + |
| +#include "jni/FeatureUtilities_jni.h" |
| + |
| +namespace chrome { |
| +namespace android { |
| + |
| +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.
|
| + |
| +int GetDocumentModeValue() { |
| + return document_mode_enabled ? DOCUMENT_MODE : TABBED_MODE; |
| +} |
| + |
| +} // namespace android |
| +} // namespace chrome |
| + |
| + |
| +static void SetDocumentModeEnabled(JNIEnv* env, |
| + jclass clazz, |
| + jboolean enabled) { |
| + chrome::android::document_mode_enabled = enabled; |
| +} |
| + |
| +bool RegisterFeatureUtilities(JNIEnv* env) { |
| + return RegisterNativesImpl(env); |
| +} |