function setup (parentWindow) {
  var id = parentWindow.id
  var view = views[id] = new BrowserView({
    webPreferences: {
      defaultEncoding: 'utf-8',
      preload: path.join(__dirname, 'fg', 'location-bar', 'index.build.js')
    }
  })
  view.setAutoResize({width: true, height: false})
  view.webContents.on('console-message', (e, level, message) => {
    console.log('Location-Bar window says:', message)
  })
  view.webContents.loadURL('beaker://location-bar/')

  settingsDb.on('set:search_engines', newValue => {
    if (id in views) {
      parentWindow.webContents.send('command', 'set-search-engines', newValue)
    }
  })
}
Location Bar

NOTES
- There can only ever be one Location Bar view for a given browser window
- Location Bar views are created with each browser window and then shown/hidden as needed
- When unfocused, the Location Bar view is hidden (it's meant to act as a popup menu)