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

Unified Diff: chrome/browser/chromeos/attestation/platform_verification_impl.cc

Issue 1133493007: Use mojo::StrongBinding in PlatformVerificationImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « chrome/browser/chromeos/attestation/platform_verification_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/attestation/platform_verification_impl.cc
diff --git a/chrome/browser/chromeos/attestation/platform_verification_impl.cc b/chrome/browser/chromeos/attestation/platform_verification_impl.cc
index 4370cf421498805809704a97e1f129d5876390ad..9bfc062c093cf06752f94a581de127cd4f2225d2 100644
--- a/chrome/browser/chromeos/attestation/platform_verification_impl.cc
+++ b/chrome/browser/chromeos/attestation/platform_verification_impl.cc
@@ -5,27 +5,30 @@
#include "chrome/browser/chromeos/attestation/platform_verification_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h"
namespace chromeos {
namespace attestation {
+using media::interfaces::PlatformVerification;
+
// static
void PlatformVerificationImpl::Create(
content::RenderFrameHost* render_frame_host,
- mojo::InterfaceRequest<media::interfaces::PlatformVerification> request) {
+ mojo::InterfaceRequest<PlatformVerification> request) {
DVLOG(2) << __FUNCTION__;
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
DCHECK(render_frame_host);
- // The created object is bound to (and owned by) the pipe.
- mojo::BindToRequest(new PlatformVerificationImpl(render_frame_host),
- &request);
+ // The created object is strongly bound to (and owned by) the pipe.
+ new PlatformVerificationImpl(render_frame_host, request.Pass());
}
PlatformVerificationImpl::PlatformVerificationImpl(
- content::RenderFrameHost* render_frame_host)
- : render_frame_host_(render_frame_host), weak_factory_(this) {
+ content::RenderFrameHost* render_frame_host,
+ mojo::InterfaceRequest<PlatformVerification> request)
+ : binding_(this, request.Pass()),
+ render_frame_host_(render_frame_host),
+ weak_factory_(this) {
DCHECK(render_frame_host);
}
« no previous file with comments | « chrome/browser/chromeos/attestation/platform_verification_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698