BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / components / nacl / common / nacl_nonsfi_util.cc
blobb0c30b6545c8dc0b25d745736600106e6cee6264
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 "components/nacl/common/nacl_nonsfi_util.h"
7 #include "base/command_line.h"
8 #include "build/build_config.h"
9 #include "components/nacl/common/nacl_switches.h"
11 namespace nacl {
13 bool IsNonSFIModeEnabled() {
14 #if defined(OS_CHROMEOS) && \
15 (defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARMEL))
16 return true;
17 #elif defined(OS_LINUX)
18 return base::CommandLine::ForCurrentProcess()->HasSwitch(
19 switches::kEnableNaClNonSfiMode);
20 #else
21 return false;
22 #endif
25 } // namespace nacl