Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1305)

Side by Side Diff: chrome/browser/autocomplete/shortcuts_database.cc

Issue 830503003: Move shortcuts_database.{cc,h} to //chrome/browser/autocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history-file-moves
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/shortcuts_database.h ('k') | chrome/browser/autocomplete/shortcuts_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698