summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/text_database.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/text_database.cc')
-rw-r--r--chrome/browser/history/text_database.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/history/text_database.cc b/chrome/browser/history/text_database.cc
index c5da03c..310f52b 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,