Commit 1eef48cd authored by achuith@chromium.org's avatar achuith@chromium.org

Remove the test for mime-type text/plain as this seems to be based on suffix only.

Files with .onc extension are not recognized as text/plain files. ONCNetworkParser should fail on non-text files, so this test is not necessary.

BUG=chromium-os:23248
TEST=Importing an onc file with .onc suffix should work.

Review URL: http://codereview.chromium.org/8623004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111084 0039d316-1c4b-4281-b951-d872f2087c98
parent 64a3dbee
......@@ -90,11 +90,6 @@ cr.define('options', function() {
});
$('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]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment