Home | History | Annotate | Download | only in browser

Lines Matching refs:cookie

15 // them, we store a unique cookie in the profile directory, which must also be
16 // present in the remote directory to connect. The cookie is checked both before
18 // different cookies. Thus, a matching cookie before and after means the
19 // connection was to a directory with a valid cookie.
394 bool CheckCookie(const FilePath& path, const FilePath& cookie) {
395 return (cookie == ReadLink(path));
403 // It's a symlink. Read the cookie.
404 FilePath cookie = ReadLink(cookie_path);
405 if (cookie.empty())
409 // Verify the cookie before connecting.
410 if (!CheckCookie(remote_cookie, cookie))
421 // Check the cookie again. We only link in /tmp, which is sticky, so, if the
424 if (!CheckCookie(remote_cookie, cookie)) {
945 FilePath cookie(GenerateCookie());
951 !SymlinkPath(cookie, cookie_path_) ||
952 !SymlinkPath(cookie, remote_cookie_path)) {