| // Copyright 2015 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. |
| |
| #include "extensions/browser/guest_view/extension_view/whitelist/extension_view_whitelist.h" |
| |
| #include <stddef.h> |
| |
| #include "base/logging.h" |
| #include "base/stl_util.h" |
| |
| namespace extensions { |
| |
| namespace { |
| |
| // ============================================================================= |
| // |
| // ADDING NEW EXTENSIONS REQUIRES APPROVAL from chrome-eng-review@google.com |
| // |
| // ============================================================================= |
| |
| const char* const kWhitelist[] = { |
| "pemeknaakobkocgmimdeamlcklioagkh", // Used in browser tests |
| "dppcjffonoklmpdmljnpdojmoaefcabf", // Used in browser tests |
| "enhhojjnijigcajfphajepfemndkmdlo", // Media Router Dev |
| "pkedcjkdefgpdelpbcmbmeomcjbeemfm", // Media Router Stable |
| }; |
| |
| } // namespace |
| |
| // static |
| bool IsExtensionIdWhitelisted(const std::string& extension_id) { |
| for (size_t i = 0; i < base::size(kWhitelist); ++i) { |
| if (extension_id == kWhitelist[i]) |
| return true; |
| } |
| |
| return false; |
| } |
| |
| } // namespace extensions |