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

Side by Side Diff: chrome/browser/extensions/component_extensions_whitelist/whitelist.cc

Issue 2290753004: Finish changing chrome/ grit includes to use qualified paths. (Closed)
Patch Set: Rebase, fix new unqualified include Created 4 years, 3 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/extensions/component_extensions_whitelist/whitelist.h" 5 #include "chrome/browser/extensions/component_extensions_whitelist/whitelist.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/common/extensions/extension_constants.h" 12 #include "chrome/common/extensions/extension_constants.h"
13 #include "chrome/grit/browser_resources.h" 13 #include "chrome/grit/browser_resources.h"
14 #include "extensions/common/constants.h" 14 #include "extensions/common/constants.h"
15 15
16 #if defined(ENABLE_APP_LIST) && defined(OS_CHROMEOS) 16 #if defined(ENABLE_APP_LIST) && defined(OS_CHROMEOS)
17 #include "chrome/browser/ui/app_list/google_now_extension.h" 17 #include "chrome/browser/ui/app_list/google_now_extension.h"
18 #endif 18 #endif
19 19
20 #if defined(OS_CHROMEOS) 20 #if defined(OS_CHROMEOS)
21 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i mpl.h" 21 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i mpl.h"
22 #include "components/chrome_apps/grit/chrome_apps_resources.h" 22 #include "components/chrome_apps/grit/chrome_apps_resources.h"
23 #include "grit/keyboard_resources.h"
24 #include "ui/file_manager/grit/file_manager_resources.h" 23 #include "ui/file_manager/grit/file_manager_resources.h"
24 #include "ui/keyboard/grit/keyboard_resources.h"
25 #endif 25 #endif
26 26
27 namespace extensions { 27 namespace extensions {
28 28
29 bool IsComponentExtensionWhitelisted(const std::string& extension_id) { 29 bool IsComponentExtensionWhitelisted(const std::string& extension_id) {
30 const char* const kAllowed[] = { 30 const char* const kAllowed[] = {
31 extension_misc::kHotwordSharedModuleId, 31 extension_misc::kHotwordSharedModuleId,
32 extension_misc::kInAppPaymentsSupportAppId, 32 extension_misc::kInAppPaymentsSupportAppId,
33 #if defined(ENABLE_MEDIA_ROUTER) 33 #if defined(ENABLE_MEDIA_ROUTER)
34 extension_misc::kMediaRouterStableExtensionId, 34 extension_misc::kMediaRouterStableExtensionId,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 LOG(ERROR) << "Component extension with manifest resource id " 125 LOG(ERROR) << "Component extension with manifest resource id "
126 << manifest_resource_id << " not in whitelist and is not being " 126 << manifest_resource_id << " not in whitelist and is not being "
127 << "loaded as a result."; 127 << "loaded as a result.";
128 NOTREACHED(); 128 NOTREACHED();
129 return false; 129 return false;
130 } 130 }
131 131
132 } // namespace extensions 132 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698