Index: chrome/browser/extensions/extension_file_browser_private_api.cc |
diff --git a/chrome/browser/extensions/extension_file_browser_private_api.cc b/chrome/browser/extensions/extension_file_browser_private_api.cc |
index c6456c0a5fc6c3779c45d22d085aacbc64720407..a968e665b4488ca91a1ccad34e65e4ecdf595e2c 100644 |
--- a/chrome/browser/extensions/extension_file_browser_private_api.cc |
+++ b/chrome/browser/extensions/extension_file_browser_private_api.cc |
@@ -375,12 +375,7 @@ class RequestLocalFileSystemFunction::LocalFileSystemCallbackDispatcher |
// Make sure that only component extension can access the entire |
// local file system. |
- if (extension_->location() != Extension::COMPONENT |
-#ifndef NDEBUG |
- && !CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kExposePrivateExtensionApi) |
-#endif |
- ) { |
+ if (extension_->location() != Extension::COMPONENT) { |
NOTREACHED() << "Private method access by non-component extension " |
<< extension_->id(); |
return false; |