Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have Chrome on my machine set to open all tabs it had open the last time I used it.

Chrome's startup settings

Sometimes (quite often, it seems, although less than half the time) it completely fails, so I have to manually reopen closed tabs. Okay, whatever,

But sometimes the list of recently closed tabs gets removed/erased/expunged/truncated/whatever, and I'm unable to recover them. I'm sure this information is saved somewhere on my machine (and since I have Time Machine running, I'd hope I can recover it if it has been overwritten).

Where is this information stored?

To be clear: I'm not asking how to open recently closed tabs, I'm asking how to restore the list when it has gone away.

share|improve this question
    
What exactly are the circumstances when this happens? Sometimes I have the case that I restart Chrome and my session won't come up, just a new empty window and the recently closed list is empty or only contains ancient items. In that case, Chrome usually has never actually shut down. There is some process still hanging around which contains the previous session. –  Oliver Salzburg Jun 21 '13 at 0:46
1  
Either way, the tabs from the last session should be stored in your Chrome profile path in a file named Last Tabs. –  Oliver Salzburg Jun 21 '13 at 0:48
    
~/Library/Application\ Support/Google/Chrome\ Canary/Default/Last\ Tabs –  iconoclast Jun 21 '13 at 1:41
add comment

2 Answers

up vote 4 down vote accepted

Turn off Chrome while you do this, to avoid any possible conflict over who is editing or changing files.

Find Current Tabs in Time Machine (or whatever backup software you're using) from a time before Chrome lost your tabs.

You'll find it here on a Mac:

~/Library/Application\ Support/Google/Chrome/Default/Current\ Tabs\

or if you use Chrome Canary:

~/Library/Application\ Support/Google/Chrome\ Canary/Default/Current\ Tabs

Rename the existing Current Tabs to something else, and restore the one from your backup.

Start Chrome.

You should now see the recently closed tabs under History → Recently Closed.

(If you do not have a backup, or just don't have one handy, you can also try using Last Tabs. It seems like it ought to work, but I have not tested it.)


UPDATE: Since this is likely to happen again (and again and again and...), it's a good idea to take pre-emptive measures to be prepared. The best pre-emptive measure that I've found to make session recovery easier when Chrome drops the ball is to install the Session Buddy Chrome plugin. It does a far better job than the built-in session management, and also better than any other plugin I've tried. (It's also the highest rated, at the moment I'm writing this.)

share|improve this answer
add comment

I didn't have any luck replacing the files suggested by iconoclast. Chrome just went back to the new session for some reason.

I was able to extract the urls manually, though, using the strings command

strings ~/Library/Application\ Support/Google/Chrome/Default/Current\ Tabs

(where ~/Library/Application\ Support/Google/Chrome/Default/Current\ Tabs is the version restored from your backup). It seems that these files contain a lot of tabs that were closed as well, so you'll have to weed through them.

share|improve this answer
    
Oh, it seems it does work (I replaced all four of Current/Last Session/Tabs, so I'm not sure which ones were necessary). It was just Time Machine's naming scheme when you choose "keep both" that confused me. The one that says "(original)" is actually the one that was restored from backup. –  asmeurer Dec 4 '13 at 4:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.