Index: chrome/common/extensions/extension.cc |
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc |
index 1ea3041df5e8058805c7fa94ca67b851288751d1..1925b91c3d5e64b68cda7aeee7adb72470bb5cc0 100644 |
--- a/chrome/common/extensions/extension.cc |
+++ b/chrome/common/extensions/extension.cc |
@@ -2058,7 +2058,7 @@ bool Extension::InitFromValue(const DictionaryValue& source, int flags, |
page != chrome::kChromeUIHistoryHost |
#if defined(FILE_MANAGER_EXTENSION) |
&& |
- !(location() == COMPONENT && |
+ !(location() == COMPONENT && |
page == chrome::kChromeUIFileManagerHost) |
#endif |
) || |
@@ -2870,17 +2870,7 @@ bool Extension::CanSpecifyComponentOnlyPermission() const { |
// Only COMPONENT extensions can use private APIs. |
// TODO(asargent) - We want a more general purpose mechanism for this, |
// and better error messages. (http://crbug.com/54013) |
- if (location_ == Extension::COMPONENT) |
- return true; |
- |
-#ifndef NDEBUG |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kExposePrivateExtensionApi)) { |
- return true; |
- } |
-#endif |
- |
- return false; |
+ return location_ == Extension::COMPONENT; |
} |
bool Extension::CanSpecifyExperimentalPermission() const { |
@@ -2913,12 +2903,7 @@ bool Extension::CanSpecifyPermissionForHostedApp( |
} |
bool Extension::CanExecuteScriptEverywhere() const { |
- if (location() == Extension::COMPONENT |
-#ifndef NDEBUG |
- || CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kExposePrivateExtensionApi) |
-#endif |
- ) |
+ if (location() == Extension::COMPONENT) |
return true; |
ScriptingWhitelist* whitelist = |