On a Linux build:
Build the sqlite_shell
target. This will build the SQLite CLI.
$ ninja sqlite_shell
Run Chrome/Chromium with a fresh profile directory and immediately quit. It doesn‘t really matter how long you run it, but there’ll be less work for you if you quit early.
$ out/Debug/chrome-wrapper --user-data-dir=foo
Locate the History
file in the profile directory.
Dump the History
database into a text file:
$ echo '.dump' | sqlite_shell foo/Default/History > history.sql
Manually remove all INSERT INTO
statements other than the statements populating the meta
table.