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

Unified Diff: chrome/browser/resources/options/chromeos/internet_options.js

Issue 8623004: Remove the test for mime-type text/plain as this seems to be based on suffix only. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/chromeos/internet_options.js
===================================================================
--- chrome/browser/resources/options/chromeos/internet_options.js (revision 110982)
+++ chrome/browser/resources/options/chromeos/internet_options.js (working copy)
@@ -90,11 +90,6 @@
});
$('upload-network-settings').addEventListener('change', function(event) {
var file = event.target.files[0];
- if (!file.type.match('text/plain')) {
- InternetOptions.invalidNetworkSettings();
- return;
- }
-
var reader = new FileReader();
reader.onloadend = function(e) {
chrome.send('importNetworkSettings', [this.result]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698