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(); |
} |