Chromium Code Reviews| Index: components/test/data/history/README.md |
| diff --git a/components/test/data/history/README.md b/components/test/data/history/README.md |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1acdc663799e1dfebdb52f7405c7d4e336cbec34 |
| --- /dev/null |
| +++ b/components/test/data/history/README.md |
| @@ -0,0 +1,25 @@ |
| +## How to generate history.N.sql files using a Chromium build. |
|
svaldez
2016/04/12 20:54:17
Add a note about the README in the CL description.
|
| + |
| +On a Linux build: |
| + |
| +1. Build the `sqlite_shell` target. This will build the [SQLite CLI]. |
| + |
| + $ ninja sqlite_shell |
| + |
| +2. 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 |
| + |
| +3. Locate the `History` file in the profile directory. |
| + |
| +4. Dump the `History` database into a text file: |
| + |
| + $ echo '.dump' | sqlite_shell foo/Default/History > history.sql |
| + |
| +5. Manually remove all `INSERT INTO` statements other than the statements |
| + populating the `meta` table. |
| + |
| +[SQLite CLI]: https://www.sqlite.org/cli.html |
| + |