Generally, many people have bad habbit of using others computer without asking them.And you saves password in the browser for fast login and switching accounts, in that case you can use extension in your chrome browser to protect your privacy. With that extension you can set a password on your chrome browser so that if somebody opens your browser without asking you it won’t let him in the browser.
If you are using firefox browser you would be searching for any method to lock your firefox browser for the sake of your privacy. Many people generally saves passwords in their browser to open the accounts fastly without applying passwords again and again.And if other people open your computer they can easily access your accounts and can do anything which they want. so, to protect your privacy you can add extension and set password.