Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Omit needless mkdir(~/.config/brave/tor): muon handles this now.
Browse files Browse the repository at this point in the history
  • Loading branch information
riastradh-brave committed Apr 12, 2018
1 parent 674e841 commit 08cebf8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions app/browser/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const {getWindow} = require('./windows')
const activeTabHistory = require('./activeTabHistory')
const path = require('path')
const {getTorSocksProxy} = require('../channel')
const fs = require('fs')

let adBlockRegions
let currentPartitionNumber = 0
Expand Down Expand Up @@ -1025,12 +1024,6 @@ const api = {
createProperties.isolated_storage = true
createProperties.parent_partition = ''
createProperties.tor_proxy = getTorSocksProxy()
const userDataDir = app.getPath('userData')
try {
fs.mkdirSync(path.join(userDataDir, 'tor'), 0o0700)
} catch (e) {
// TODO(riastradh): Report errors other than EEXIST.
}
if (process.platform === 'win32') {
createProperties.tor_path = '"' + path.join(getExtensionsPath('bin'), 'tor.exe') + '"'
} else {
Expand Down
7 changes: 0 additions & 7 deletions app/filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const ledgerUtil = require('./common/lib/ledgerUtil')
const {cookieExceptions, refererExceptions} = require('../js/data/siteHacks')
const {getBraverySettingsCache, updateBraverySettingsCache} = require('./common/cache/braverySettingsCache')
const {getTorSocksProxy} = require('./channel')
const fs = require('fs')

let appStore = null

Expand Down Expand Up @@ -706,12 +705,6 @@ const initPartition = (partition) => {
options.isolated_storage = true
options.parent_partition = ''
options.tor_proxy = getTorSocksProxy()
const userDataDir = app.getPath('userData')
try {
fs.mkdirSync(path.join(userDataDir, 'tor'), 0o0700)
} catch (e) {
// TODO(riastradh): Report errors other than EEXIST.
}
if (process.platform === 'win32') {
options.tor_path = '"' + path.join(getExtensionsPath('bin'), 'tor.exe') + '"'
} else {
Expand Down

0 comments on commit 08cebf8

Please sign in to comment.