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

Unified Diff: content/child/child_message_filter.cc

Issue 504273002: Remove implicit conversions from scoped_refptr to T* in content/ (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
Index: content/child/child_message_filter.cc
diff --git a/content/child/child_message_filter.cc b/content/child/child_message_filter.cc
index 5d2f2e4629731a610dbb49cc55ea3ad51a869db0..b7bdf0529dfe983cf873232edabef6d270054d65 100644
--- a/content/child/child_message_filter.cc
+++ b/content/child/child_message_filter.cc
@@ -21,7 +21,7 @@ class ChildMessageFilter::Internal : public IPC::MessageFilter {
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE {
scoped_refptr<base::TaskRunner> runner =
filter_->OverrideTaskRunnerForMessage(msg);
- if (runner && !runner->RunsTasksOnCurrentThread()) {
+ if (runner.get() && !runner->RunsTasksOnCurrentThread()) {
if (!runner->PostTask(
FROM_HERE,
base::Bind(
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | content/child/npapi/plugin_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698