 # URL shortener service.
 callUrlShortener = (url, callback) ->
   callUrlShortenerHelper (service) ->
-    name = service.name
-    sUrl = service.url()
+    sUrl  = service.url()
+    title = service.title
     unless sUrl
       # Should never happen... Really just a sanity check.
       callback?(
-        message:   i18n.get 'shortener_config_error', name
-        shortener: name
+        message:   i18n.get 'shortener_config_error', title
+        shortener: title
         success:   no
       )
       return

    else if yourls.signature
      params.signature = yourls.signature
    params
  input: ->
    null
  isEnabled: ->
    store.get 'yourls.enabled'
  method: 'POST'
  name: 'YOURLS'
  output: (resp) ->
    JSON.parse(resp).shorturl
  url: ->
    store.get 'yourls.url'
]

  isOAuthEnabled: ->
    store.get 'googl.oauth'
  method: 'POST'
  name: 'googl'
  oauth: ChromeExOAuth.initBackgroundPage
    access_url:      'https://www.google.com/accounts/OAuthGetAccessToken'
    app_name:        i18n.get 'app_name'
