Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / android / feature_utilities.cc
blob39f55782addfa20a85d9c03a7ad72320200f38c7
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.
5 #include "chrome/browser/android/feature_utilities.h"
7 #include "jni/FeatureUtilities_jni.h"
9 namespace {
10 bool document_mode_enabled = false;
11 } // namespace
13 namespace chrome {
14 namespace android {
16 RunningModeHistogram GetDocumentModeValue() {
17 return document_mode_enabled ? RUNNING_MODE_DOCUMENT_MODE :
18 RUNNING_MODE_TABBED_MODE;
21 } // namespace android
22 } // namespace chrome
25 static void SetDocumentModeEnabled(JNIEnv* env,
26 jclass clazz,
27 jboolean enabled) {
28 document_mode_enabled = enabled;
31 bool RegisterFeatureUtilities(JNIEnv* env) {
32 return RegisterNativesImpl(env);