     fileprivate lazy var loginsKey: String? = {
         
         let key = "sqlcipher.key.logins.db"
-        if KeychainWrapper.standard.hasValue(forKey: key) {
+        if self.keychain.hasValue(forKey: key) {
             return KeychainWrapper.standard.string(forKey: key)
         }
         
         let Length: UInt = 256
         let secret = Bytes.generateRandomBytes(Length).base64EncodedString
-        KeychainWrapper.standard.set(secret, forKey: key)
+        self.keychain.set(secret, forKey: key)
         return secret
     }()
 


    func removeAccountMetadata() {
        self.prefs.removeObjectForKey(PrefsKeys.KeyLastRemoteTabSyncTime)
        KeychainWrapper.standard.removeObject(forKey: self.name + ".account")
    }

    func removeExistingAuthenticationInfo() {
        KeychainWrapper.standard.setAuthenticationInfo(nil)
    }
}

open class BrowserProfile: Profile {
    
    fileprivate let name: String
    fileprivate let keychain: KeychainWrapper
    
    internal let files: FileAccessor

    weak fileprivate var app: UIApplication?
