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

Side by Side Diff: components/nacl/common/nacl_nonsfi_util.cc

Issue 774933004: Prefix CommandLine usage with base namespace (Part 9: components) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « components/nacl/common/nacl_cmd_line.cc ('k') | components/nacl/loader/nacl_helper_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/nacl/common/nacl_nonsfi_util.h" 5 #include "components/nacl/common/nacl_nonsfi_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "components/nacl/common/nacl_switches.h" 9 #include "components/nacl/common/nacl_switches.h"
10 10
11 namespace nacl { 11 namespace nacl {
12 12
13 bool IsNonSFIModeEnabled() { 13 bool IsNonSFIModeEnabled() {
14 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) 14 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
15 return true; 15 return true;
16 #elif defined(OS_LINUX) 16 #elif defined(OS_LINUX)
17 return CommandLine::ForCurrentProcess()->HasSwitch( 17 return base::CommandLine::ForCurrentProcess()->HasSwitch(
18 switches::kEnableNaClNonSfiMode); 18 switches::kEnableNaClNonSfiMode);
19 #else 19 #else
20 return false; 20 return false;
21 #endif 21 #endif
22 } 22 }
23 23
24 } // namespace nacl 24 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_cmd_line.cc ('k') | components/nacl/loader/nacl_helper_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698