 # Handle the conversion/removal of older version of settings that may have
 # been stored previously by `initUrlShorteners`.
 initUrlShorteners_update = ->
-  update_progress = utils.get 'update_progress'
+  update_progress = store.get 'update_progress'
   update_progress.shorteners ?= []
   # Check if the URL shorteners need updated for 0.1.0.0.
   if update_progress.shorteners.indexOf('0.1.0.0') is -1
     # Update the URL shorteners for 0.1.0.0.
-    utils.rename 'bitlyEnabled',       'bitly',         off
-    utils.rename 'bitlyXApiKey',       'bitlyApiKey',   ''
-    utils.rename 'bitlyXLogin',        'bitlyUsername', ''
-    utils.rename 'googleEnabled',      'googl',         on
-    utils.rename 'googleOAuthEnabled', 'googlOAuth',    on
+    store.rename 'bitlyEnabled',       'bitly',         off
+    store.rename 'bitlyXApiKey',       'bitlyApiKey',   ''
+    store.rename 'bitlyXLogin',        'bitlyUsername', ''
+    store.rename 'googleEnabled',      'googl',         on
+    store.rename 'googleOAuthEnabled', 'googlOAuth',    on
     # Ensure that URL shorteners are not updated for 0.1.0.0 again.
     update_progress.shorteners.push '0.1.0.0'
-    utils.set 'update_progress', update_progress
+    store.set 'update_progress', update_progress
 
 # URL shortener functions
 # -----------------------

          break
        image = '' if typeof image isnt 'string'
      templates.push
        content:  utils.remove("feat_#{name}_content")  ? ''
        enabled:  utils.remove("feat_#{name}_enabled")  ? yes
        image:    image
        index:    utils.remove("feat_#{name}_index")    ? 0
        name:     name
        readOnly: utils.remove("feat_#{name}_readonly") ? no
        shortcut: utils.remove("feat_#{name}_shortcut") ? ''
        title:    utils.remove("feat_#{name}_title")    ? name
        usage:    0
    utils.set 'templates', templates
    utils.remove utils.search(
      /^feat_.*_(content|enabled|image|index|readonly|shortcut|title)$/
    )...
    # Ensure that templates are not updated for 1.0.0 again.
    update_progress.templates.push '1.0.0'
    utils.set 'update_progress', update_progress

# Initialize the settings related to the toolbar/browser action.
initToolbar = ->
  initToolbar_update()
  utils.init
    toolbarPopup:           on
    toolbarPopupClose:      on
    toolbarTemplate:        off
    toolbarTemplateDetails: off
    toolbarTemplateName:    ''
  ext.updateToolbar()

# Handle the conversion/removal of older version of settings that may have
# been stored previously by `initToolbar`.
initToolbar_update = ->
  update_progress = utils.get 'update_progress'
  update_progress.toolbar ?= []
  # Check if the toolbar settings need updated for 1.0.0.
  if update_progress.toolbar.indexOf('1.0.0') is -1
    # Update the toolbar settings for 1.0.0.
    utils.rename 'toolbarFeature',        'toolbarTemplate',        off
    utils.rename 'toolbarFeatureDetails', 'toolbarTemplateDetails', off
    utils.rename 'toolbarFeatureName',    'toolbarTemplateName',    ''
    # Ensure that toolbar settings are not updated for 1.0.0 again.
    update_progress.toolbar.push '1.0.0'
    utils.set 'update_progress', update_progress

# Initialize the settings related to the supported URL Shortener services.
initUrlShorteners = ->
  initUrlShorteners_update()
  utils.init
    bitly:           off
    bitlyApiKey:     ''
    bitlyUsername:   ''

    name:     '_url'
    readOnly: yes
    shortcut: 'U'
    title:    i18n.get 'copy_url'
    usage:    0
]
# Extension ID being used by Template.
EXTENSION_ID      = i18n.get '@@extension_id'
# Domain of this extension's homepage.
HOMEPAGE_DOMAIN   = 'neocotic.com'
# List of known operating systems that could be used by the user.
