|  | // Copyright 2020 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. | 
|  |  | 
|  | // This file maps permissions resource IDs to Android resource IDs. | 
|  |  | 
|  | // Presence of regular include guards is checked by: | 
|  | // 1. cpplint | 
|  | // 2. a custom presubmit in src/PRESUBMIT.py | 
|  | // 3. clang (but it only checks the guard is correct if present) | 
|  | // Disable the first two with these magic comments: | 
|  | // NOLINT(build/header_guard) | 
|  | // no-include-guard-because-multiply-included | 
|  |  | 
|  | #include "device/vr/buildflags/buildflags.h" | 
|  |  | 
|  | // LINK_RESOURCE_ID is used for IDs that come from a .grd file. | 
|  | #ifndef LINK_RESOURCE_ID | 
|  | #error "LINK_RESOURCE_ID should be defined before including this file" | 
|  | #endif | 
|  | // DECLARE_RESOURCE_ID is used for IDs that don't have .grd entries, and | 
|  | // are only declared in this file. | 
|  | #ifndef DECLARE_RESOURCE_ID | 
|  | #error "DECLARE_RESOURCE_ID should be defined before including this file" | 
|  | #endif | 
|  |  | 
|  | #if BUILDFLAG(ENABLE_ARCORE) | 
|  | DECLARE_RESOURCE_ID(IDR_ANDROID_AR_CORE_INSALL_ICON, | 
|  | R.drawable.ic_ar_core_install) | 
|  | #endif  // ENABLE_ARCORE |