OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/history/shortcuts_database.h" | 5 #include "chrome/browser/autocomplete/shortcuts_database.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "components/omnibox/autocomplete_match_type.h" | 13 #include "components/omnibox/autocomplete_match_type.h" |
14 #include "sql/meta_table.h" | 14 #include "sql/meta_table.h" |
15 #include "sql/statement.h" | 15 #include "sql/statement.h" |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 db_.Execute(base::StringPrintf("UPDATE omni_box_shortcuts " | 272 db_.Execute(base::StringPrintf("UPDATE omni_box_shortcuts " |
273 "SET type = 16 WHERE type = 12").c_str()) && | 273 "SET type = 16 WHERE type = 12").c_str()) && |
274 transaction.Commit())) { | 274 transaction.Commit())) { |
275 return false; | 275 return false; |
276 } | 276 } |
277 } | 277 } |
278 return true; | 278 return true; |
279 } | 279 } |
280 | 280 |
281 } // namespace history | 281 } // namespace history |
OLD | NEW |