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

Unified Diff: chrome/service/cloud_print/cloud_print_proxy_backend.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
Index: chrome/service/cloud_print/cloud_print_proxy_backend.cc
diff --git a/chrome/service/cloud_print/cloud_print_proxy_backend.cc b/chrome/service/cloud_print/cloud_print_proxy_backend.cc
index 1e86d7c8b2a9c431636949c8f214486c87cb49ae..4def70e10f53fbce5370d7f0dd25bae983871c7d 100644
--- a/chrome/service/cloud_print/cloud_print_proxy_backend.cc
+++ b/chrome/service/cloud_print/cloud_print_proxy_backend.cc
@@ -186,7 +186,7 @@ bool CloudPrintProxyBackend::InitializeWithToken(
return false;
PostCoreTask(FROM_HERE,
base::Bind(&CloudPrintProxyBackend::Core::DoInitializeWithToken,
- core_.get(), cloud_print_token));
+ core_, cloud_print_token));
return true;
}
@@ -198,7 +198,7 @@ bool CloudPrintProxyBackend::InitializeWithRobotToken(
PostCoreTask(
FROM_HERE,
base::Bind(&CloudPrintProxyBackend::Core::DoInitializeWithRobotToken,
- core_.get(), robot_oauth_refresh_token, robot_email));
+ core_, robot_oauth_refresh_token, robot_email));
return true;
}
@@ -210,13 +210,13 @@ bool CloudPrintProxyBackend::InitializeWithRobotAuthCode(
PostCoreTask(
FROM_HERE,
base::Bind(&CloudPrintProxyBackend::Core::DoInitializeWithRobotAuthCode,
- core_.get(), robot_oauth_auth_code, robot_email));
+ core_, robot_oauth_auth_code, robot_email));
return true;
}
void CloudPrintProxyBackend::Shutdown() {
PostCoreTask(FROM_HERE, base::Bind(&CloudPrintProxyBackend::Core::DoShutdown,
- core_.get()));
+ core_));
core_thread_.Stop();
core_ = nullptr; // Releases reference to |core_|.
}
@@ -224,7 +224,7 @@ void CloudPrintProxyBackend::Shutdown() {
void CloudPrintProxyBackend::UnregisterPrinters() {
PostCoreTask(FROM_HERE,
base::Bind(&CloudPrintProxyBackend::Core::DoUnregisterPrinters,
- core_.get()));
+ core_));
}
bool CloudPrintProxyBackend::PostCoreTask(
« no previous file with comments | « chrome/browser/ui/webui/net_internals/net_internals_ui.cc ('k') | chrome/service/cloud_print/printer_job_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698