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

Unified Diff: chrome/browser/resources/extensions/extensions.js

Issue 10449008: Allow user script install by dragging onto chrome://extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use correct base Created 8 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/extensions/install_extension_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/extensions/extensions.js
diff --git a/chrome/browser/resources/extensions/extensions.js b/chrome/browser/resources/extensions/extensions.js
index bc03c9b1ee040344569d3d918b0dbfe60115a13d..81096b8bcb00111ba7d93614e7604e063df00325 100644
--- a/chrome/browser/resources/extensions/extensions.js
+++ b/chrome/browser/resources/extensions/extensions.js
@@ -44,7 +44,7 @@ cr.define('extensions', function() {
// Only process files that look like extensions. Other files should
// navigate the browser normally.
if (!e.dataTransfer.files.length ||
- !/\.crx$/.test(e.dataTransfer.files[0].name)) {
+ !/\.(crx|user\.js)$/.test(e.dataTransfer.files[0].name)) {
return;
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/extensions/install_extension_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698