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

Unified Diff: chrome/common/extensions/extension.cc

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension.cc
===================================================================
--- chrome/common/extensions/extension.cc (revision 79517)
+++ chrome/common/extensions/extension.cc (working copy)
@@ -1909,16 +1909,17 @@
// TODO(asargent) - We want a more general purpose mechanism for this,
// and better error messages. (http://crbug.com/54013)
if ((permission_str == kWebstorePrivatePermission ||
+ permission_str == kChromeosInfoPrivatePermissions ||
permission_str == kFileBrowserPrivatePermission) &&
- location_ != Extension::COMPONENT) {
+ (location_ != Extension::COMPONENT
+#ifndef NDEBUG
+ && !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kExposePrivateExtensionApi)
+#endif
+ )) {
continue;
}
- if (permission_str == kChromeosInfoPrivatePermissions &&
- location_ != Extension::COMPONENT) {
- continue;
- }
-
// Remap the old unlimited storage permission name.
if (permission_str == kOldUnlimitedStoragePermission)
permission_str = kUnlimitedStoragePermission;

Powered by Google App Engine
This is Rietveld 408576698