I ran into an odd problem this week; a user found that whenever they started Chrome on their Mac, the bookmarks on the bookmark bar would spontaneously rearrange themselves. The user only noticed because he tried to put two bookmarks next to each other, and they kept ending up back where they started.
We investigated further. It didn't matter if we dragged the bookmarks around on the bookmark bar, or did it via the bookmark manager, they still got reverted to their original state. It only happened on quitting and restarting Chrome. They would come up in the desired order, and then a few seconds after starting they would jump back to the original.
I tried "Reorder by title" in the Bookmark manager; oddly enough some of the resulting changes got preserved on restart and some did not. Having done that, I wasn't able to put them back the way they had been, which didn't make the user very happy.
Dr Google was no help; I read a great many explanations of how to use or clear bookmark synching on your google account. But the user didn't have this set up and wasn't logged in anyway. I even tried disconnecting the internet connection; the problem remained.
I discovered that Chrome bookmarks are stored in ~/Library/Application Support/Google/Chrome/Default/Bookmarks (you can get to the Library folders by holding down Option while you selection the Go menu in Finder). I had a look; it's a fairly readable text document. I took a copy after closing Chrome down with the bookmarks in the right spot, and the contents were as expected. Copying this over the main file (and the .bak file for luck) appeared to control what order the bookmarks appeared in at the start, before they were magically reordered. Where else could there be copies?
I looked through the rest of the contents of the Default folder, and found a folder called "Sync Data Backup". Sounded interesting; I closed down Chrome, moved the contents (an sqlite database) out to a temporary location, and restarted. Jackpot! The bookmarks remained unmoved. Changes to their order now persisted through restarts. A new sqlite database file had appeared, but this one apparently did not have delusions of grandeur.
I have no idea what state the database file had got into that caused it to override bookmark order in this way, but I report this in case it proves useful to someone else with the same problem.
I should add that messing with random config files may cause you untold grief; make sure you keep track of what you have done so that it may be undone if need be. Backups are your friend. I don't know what is the database file besides bookmark ordering, and if you commonly use synching you might be killing off other things that you want to keep.
Summary: if Chrome messes with your bookmarks, and you do not have syncing turned on, stop Chrome, delete ~/Library/Application Support/Google/Chrome/Default/Sync Data Backup/SyncData.sqlite3 and start it again.
We investigated further. It didn't matter if we dragged the bookmarks around on the bookmark bar, or did it via the bookmark manager, they still got reverted to their original state. It only happened on quitting and restarting Chrome. They would come up in the desired order, and then a few seconds after starting they would jump back to the original.
I tried "Reorder by title" in the Bookmark manager; oddly enough some of the resulting changes got preserved on restart and some did not. Having done that, I wasn't able to put them back the way they had been, which didn't make the user very happy.
Dr Google was no help; I read a great many explanations of how to use or clear bookmark synching on your google account. But the user didn't have this set up and wasn't logged in anyway. I even tried disconnecting the internet connection; the problem remained.
I discovered that Chrome bookmarks are stored in ~/Library/Application Support/Google/Chrome/Default/Bookmarks (you can get to the Library folders by holding down Option while you selection the Go menu in Finder). I had a look; it's a fairly readable text document. I took a copy after closing Chrome down with the bookmarks in the right spot, and the contents were as expected. Copying this over the main file (and the .bak file for luck) appeared to control what order the bookmarks appeared in at the start, before they were magically reordered. Where else could there be copies?
I looked through the rest of the contents of the Default folder, and found a folder called "Sync Data Backup". Sounded interesting; I closed down Chrome, moved the contents (an sqlite database) out to a temporary location, and restarted. Jackpot! The bookmarks remained unmoved. Changes to their order now persisted through restarts. A new sqlite database file had appeared, but this one apparently did not have delusions of grandeur.
I have no idea what state the database file had got into that caused it to override bookmark order in this way, but I report this in case it proves useful to someone else with the same problem.
I should add that messing with random config files may cause you untold grief; make sure you keep track of what you have done so that it may be undone if need be. Backups are your friend. I don't know what is the database file besides bookmark ordering, and if you commonly use synching you might be killing off other things that you want to keep.
Summary: if Chrome messes with your bookmarks, and you do not have syncing turned on, stop Chrome, delete ~/Library/Application Support/Google/Chrome/Default/Sync Data Backup/SyncData.sqlite3 and start it again.