| 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 db22b12303f6317082dc547f256bf4737d1cbc88..143a49b2bafc2bd47175e377e061fa44511aba2e 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;
|
|
|