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

Unified Diff: chrome/browser/sync_file_system/drive_backend/callback_helper.h

Issue 506793002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/sync_file_system/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/sync_file_system/drive_backend/callback_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/callback_helper.h
diff --git a/chrome/browser/sync_file_system/drive_backend/callback_helper.h b/chrome/browser/sync_file_system/drive_backend/callback_helper.h
index ba01b67691f42f02e9ae2e893abbbc1067fbe0f6..bce337769c3a9aebef330879314c3434a5ccaed7 100644
--- a/chrome/browser/sync_file_system/drive_backend/callback_helper.h
+++ b/chrome/browser/sync_file_system/drive_backend/callback_helper.h
@@ -48,7 +48,7 @@ class CallbackHolder {
: task_runner_(task_runner),
from_here_(from_here),
callback_(new base::Callback<T>(callback)) {
- DCHECK(task_runner_);
+ DCHECK(task_runner_.get());
}
~CallbackHolder() {
@@ -57,7 +57,7 @@ class CallbackHolder {
delete callback;
}
- base::SequencedTaskRunner* task_runner() const { return task_runner_; }
+ base::SequencedTaskRunner* task_runner() const { return task_runner_.get(); }
const tracked_objects::Location& from_here() const { return from_here_; }
const base::Callback<T>& callback() const { return *callback_; }
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/callback_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698