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

Unified Diff: chrome/browser/extensions/activity_log/activity_database.cc

Issue 216513002: Replace DCHECK(BrowserThread::CurrentlyOn) with DCHECK_CURRENTLY_ON in extensions. (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
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/activity_log/activity_database.cc
diff --git a/chrome/browser/extensions/activity_log/activity_database.cc b/chrome/browser/extensions/activity_log/activity_database.cc
index 66844af08dde18aaf84416939402d530e9cda1fb..09b868be38f53b42173f96e305b82d80318226b3 100644
--- a/chrome/browser/extensions/activity_log/activity_database.cc
+++ b/chrome/browser/extensions/activity_log/activity_database.cc
@@ -57,7 +57,7 @@ void ActivityDatabase::Init(const base::FilePath& db_name) {
if (did_init_) return;
did_init_ = true;
if (BrowserThread::IsMessageLoopValid(BrowserThread::DB))
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
+ DCHECK_CURRENTLY_ON(BrowserThread::DB);
db_.set_histogram_tag("Activity");
db_.set_error_callback(
base::Bind(&ActivityDatabase::DatabaseErrorCallback,
@@ -136,7 +136,7 @@ void ActivityDatabase::SetBatchModeForTesting(bool batch_mode) {
sql::Connection* ActivityDatabase::GetSqlConnection() {
if (BrowserThread::IsMessageLoopValid(BrowserThread::DB))
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
+ DCHECK_CURRENTLY_ON(BrowserThread::DB);
if (valid_db_) {
return &db_;
} else {
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698