| Index: chrome/browser/history/shortcuts_database.cc
|
| diff --git a/chrome/browser/history/shortcuts_database.cc b/chrome/browser/history/shortcuts_database.cc
|
| index 45e11a95c148bf0660f613f384e7026413e2d7a0..5b761df0e0f3c39e360ef68cb1b1b1193fd492fa 100644
|
| --- a/chrome/browser/history/shortcuts_database.cc
|
| +++ b/chrome/browser/history/shortcuts_database.cc
|
| @@ -168,17 +168,10 @@ bool ShortcutsDatabase::DeleteShortcutsWithUrl(
|
| }
|
|
|
| bool ShortcutsDatabase::DeleteAllShortcuts() {
|
| - sql::Statement s(db_.GetCachedStatement(SQL_FROM_HERE,
|
| - "DROP TABLE " kShortcutsDBName));
|
| - if (!s) {
|
| - NOTREACHED() << "Statement prepare failed";
|
| + if (!db_.Execute("DELETE FROM " kShortcutsDBName))
|
| return false;
|
| - }
|
|
|
| - if (!s.Run())
|
| - return false;
|
| - EnsureTable();
|
| - db_.Execute("VACUUM");
|
| + ignore_result(db_.Execute("VACUUM"));
|
| return true;
|
| }
|
|
|
|
|