| Index: chrome/browser/history/text_database.cc
|
| diff --git a/chrome/browser/history/text_database.cc b/chrome/browser/history/text_database.cc
|
| index c5da03cf2cad466c5d51728e5e88c3bbccde0c75..310f52b2af76374c86a102233bba19143f66c9c0 100644
|
| --- a/chrome/browser/history/text_database.cc
|
| +++ b/chrome/browser/history/text_database.cc
|
| @@ -201,10 +201,8 @@ bool TextDatabase::CreateTables() {
|
| return false;
|
| }
|
|
|
| - // Create the index. This will fail when the index already exists, so we just
|
| - // ignore the error.
|
| - db_.Execute("CREATE INDEX info_time ON info(time)");
|
| - return true;
|
| + // Create the index.
|
| + return db_.Execute("CREATE INDEX IF NOT EXISTS info_time ON info(time)");
|
| }
|
|
|
| bool TextDatabase::AddPageData(base::Time time,
|
|
|