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

Unified Diff: chrome/browser/history/history_backend.cc

Issue 8451009: HQP Refactoring (in Preparation for SQLite Cache) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history_backend.cc
===================================================================
--- chrome/browser/history/history_backend.cc (revision 108940)
+++ chrome/browser/history/history_backend.cc (working copy)
@@ -9,7 +9,6 @@
#include <set>
#include <vector>
-#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/file_util.h"
#include "base/memory/scoped_ptr.h"
@@ -211,14 +210,13 @@
backend_destroy_message_loop_(NULL),
backend_destroy_task_(NULL),
segment_queried_(false),
- bookmark_service_(bookmark_service) {
-}
+ bookmark_service_(bookmark_service) {}
Peter Kasting 2011/11/21 19:07:50 Nit: I normally prefer the braces on separate line
mrossetti 2011/11/21 21:53:25 Done.
HistoryBackend::~HistoryBackend() {
DCHECK(!scheduled_commit_) << "Deleting without cleanup";
ReleaseDBTasks();
- // First close the databases before optionally running the "destroy" task.
+ // Close the databases before optionally running the "destroy" task.
if (db_.get()) {
// Commit the long-running transaction.
db_->CommitTransaction();
@@ -885,6 +883,7 @@
if (row_id && row.title() != title) {
row.set_title(title);
db_->UpdateURLRow(row_id, row);
+ row.id_ = row_id;
changed_urls.push_back(row);
if (row.typed_count() > 0)
typed_url_changed = true;

Powered by Google App Engine
This is Rietveld 408576698