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

Unified Diff: trunk/src/sandbox/linux/services/build_config_functions.h

Issue 107643002: Revert 239102 "Move build/build_config_functions.h to sandbox/" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/sandbox/linux/services/build_config_functions.h
===================================================================
--- trunk/src/sandbox/linux/services/build_config_functions.h (revision 239104)
+++ trunk/src/sandbox/linux/services/build_config_functions.h (working copy)
@@ -1,86 +0,0 @@
-// Copyright (c) 2013 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.
-
-// These helpers allow to avoid the use of an #ifdef when the code can
-// compile without them. Thanks to compiler optimizations, the final generated
-// binary should look the same when using these.
-
-#ifndef SANDBOX_LINUX_SERVICES_BUILD_CONFIG_FUNCTIONS_H_
-#define SANDBOX_LINUX_SERVICES_BUILD_CONFIG_FUNCTIONS_H_
-
-#include "build/build_config.h"
-
-namespace sandbox {
-
-namespace {
-
-inline bool IsASANBuild() {
-#if defined(ADDRESS_SANITIZER)
- return true;
-#else
- return false;
-#endif
-}
-
-inline bool IsLinux() {
-#if defined(OS_LINUX)
- return true;
-#else
- return false;
-#endif
-}
-
-inline bool IsChromeOS() {
-#if defined(OS_CHROMEOS)
- return true;
-#else
- return false;
-#endif
-}
-
-inline bool IsAndroid() {
-#if defined(OS_ANDROID)
- return true;
-#else
- return false;
-#endif
-}
-
-inline bool IsArchitectureX86_64() {
-#if defined(ARCH_CPU_X86_64)
- return true;
-#else
- return false;
-#endif
-}
-
-inline bool IsArchitectureI386() {
-#if defined(ARCH_CPU_X86)
- return true;
-#else
- return false;
-#endif
-}
-
-inline bool IsArchitectureARM() {
-#if defined(ARCH_CPU_ARM_FAMILY)
- return true;
-#else
- return false;
-#endif
-}
-
-inline bool IsUsingToolKitGtk() {
-#if defined(TOOLKIT_GTK)
- return true;
-#else
- return false;
-#endif
-}
-
-} // namespace.
-
-} // namespace sandbox.
-
-#endif // SANDBOX_LINUX_SERVICES_BUILD_CONFIG_FUNCTIONS_H_
« no previous file with comments | « trunk/src/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698