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

Side by Side Diff: chrome/browser/history/url_database.cc

Issue 39206: NO CODE CHANGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/url_database.h" 5 #include "chrome/browser/history/url_database.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 void URLDatabase::CreateMainURLIndex() { 469 void URLDatabase::CreateMainURLIndex() {
470 // Index over URLs so we can quickly look up based on URL. Ignore errors as 470 // Index over URLs so we can quickly look up based on URL. Ignore errors as
471 // this likely already exists (and the same below). 471 // this likely already exists (and the same below).
472 sqlite3_exec(GetDB(), "CREATE INDEX urls_url_index ON urls (url)", NULL, NULL, 472 sqlite3_exec(GetDB(), "CREATE INDEX urls_url_index ON urls (url)", NULL, NULL,
473 NULL); 473 NULL);
474 } 474 }
475 475
476 void URLDatabase::CreateSupplimentaryURLIndices() { 476 void URLDatabase::CreateSupplimentaryURLIndices() {
477 // Add a favicon index. This is useful when we delete urls. 477 // Add a favicon index. This is useful when we delete urls.
478 sqlite3_exec(GetDB(), "CREATE INDEX urls_favicon_id_INDEX ON urls (favicon_id) ", 478 sqlite3_exec(GetDB(),
479 "CREATE INDEX urls_favicon_id_INDEX ON urls (favicon_id)",
479 NULL, NULL, NULL); 480 NULL, NULL, NULL);
480 } 481 }
481 482
482 } // namespace history 483 } // namespace history
483 484
OLDNEW
« no previous file with comments | « chrome/browser/history/text_database_unittest.cc ('k') | chrome/browser/history/visit_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698