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

Unified Diff: components/webdata/common/web_data_service_backend.cc

Issue 217613002: Misc. cleanup found while mucking with search engines code: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/webdata/common/web_data_service_backend.cc
===================================================================
--- components/webdata/common/web_data_service_backend.cc (revision 259649)
+++ components/webdata/common/web_data_service_backend.cc (working copy)
@@ -112,10 +112,8 @@
}
void WebDataServiceBackend::Commit() {
- if (db_ && init_status_ == sql::INIT_OK) {
- db_->CommitTransaction();
- db_->BeginTransaction();
- } else {
- NOTREACHED() << "Commit scheduled after Shutdown()";
- }
+ DCHECK(db_);
+ DCHECK_EQ(sql::INIT_OK, init_status_);
+ db_->CommitTransaction();
+ db_->BeginTransaction();
}

Powered by Google App Engine
This is Rietveld 408576698