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

Unified Diff: components/invalidation/impl/non_blocking_invalidator.cc

Issue 2283373002: Remove unneeded scoped_refptr<>::get() on method binding (Closed)
Patch Set: Created 4 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 | « components/history/core/browser/history_service.cc ('k') | components/prefs/pref_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/invalidation/impl/non_blocking_invalidator.cc
diff --git a/components/invalidation/impl/non_blocking_invalidator.cc b/components/invalidation/impl/non_blocking_invalidator.cc
index 667175aa6d5ef69880adeacf4ce3d414918e96f1..0a5bca039c7d5660d0d88888a185413af5ef9175 100644
--- a/components/invalidation/impl/non_blocking_invalidator.cc
+++ b/components/invalidation/impl/non_blocking_invalidator.cc
@@ -249,7 +249,7 @@ NonBlockingInvalidator::NonBlockingInvalidator(
FROM_HERE,
base::Bind(
&NonBlockingInvalidator::Core::Initialize,
- core_.get(),
+ core_,
initialize_options))) {
NOTREACHED();
}
@@ -260,7 +260,7 @@ NonBlockingInvalidator::~NonBlockingInvalidator() {
if (!network_task_runner_->PostTask(
FROM_HERE,
base::Bind(&NonBlockingInvalidator::Core::Teardown,
- core_.get()))) {
+ core_))) {
DVLOG(1) << "Network thread stopped before invalidator is destroyed.";
}
}
@@ -279,7 +279,7 @@ bool NonBlockingInvalidator::UpdateRegisteredIds(InvalidationHandler* handler,
FROM_HERE,
base::Bind(
&NonBlockingInvalidator::Core::UpdateRegisteredIds,
- core_.get(),
+ core_,
registrar_.GetAllRegisteredIds()))) {
NOTREACHED();
}
@@ -302,7 +302,7 @@ void NonBlockingInvalidator::UpdateCredentials(const std::string& email,
if (!network_task_runner_->PostTask(
FROM_HERE,
base::Bind(&NonBlockingInvalidator::Core::UpdateCredentials,
- core_.get(), email, token))) {
+ core_, email, token))) {
NOTREACHED();
}
}
@@ -315,7 +315,7 @@ void NonBlockingInvalidator::RequestDetailedStatus(
if (!network_task_runner_->PostTask(
FROM_HERE,
base::Bind(&NonBlockingInvalidator::Core::RequestDetailedStatus,
- core_.get(),
+ core_,
proxy_callback))) {
NOTREACHED();
}
« no previous file with comments | « components/history/core/browser/history_service.cc ('k') | components/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698