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

Unified Diff: chrome/browser/extensions/api/file_handlers/app_file_handler_util.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
Index: chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
diff --git a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
index f79af9f43829757681049bcd730c098985ec3b35..2cea3773bdb6a98c9482892c148fe7216860f0b6 100644
--- a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
+++ b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
@@ -175,7 +175,7 @@ void WritableFileChecker::Check() {
WritableFileChecker::~WritableFileChecker() {}
void WritableFileChecker::TaskDone() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (--outstanding_tasks_ == 0) {
if (error_path_.empty())
on_success_.Run();
@@ -193,7 +193,7 @@ void WritableFileChecker::Error(const base::FilePath& error_path) {
}
void WritableFileChecker::CheckLocalWritableFiles() {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::FILE);
std::string error;
for (std::vector<base::FilePath>::const_iterator it = paths_.begin();
it != paths_.end();

Powered by Google App Engine
This is Rietveld 408576698