| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "shell/android/android_handler_loader.h" | 5 #include "shell/android/android_handler_loader.h" |
| 6 | 6 |
| 7 namespace shell { | 7 namespace shell { |
| 8 | 8 |
| 9 AndroidHandlerLoader::AndroidHandlerLoader() { | 9 AndroidHandlerLoader::AndroidHandlerLoader() {} |
| 10 } | |
| 11 | 10 |
| 12 AndroidHandlerLoader::~AndroidHandlerLoader() { | 11 AndroidHandlerLoader::~AndroidHandlerLoader() {} |
| 13 } | |
| 14 | 12 |
| 15 void AndroidHandlerLoader::Load( | 13 void AndroidHandlerLoader::Load( |
| 16 const GURL& url, | 14 const GURL& url, |
| 17 mojo::InterfaceRequest<mojo::Application> application_request) { | 15 mojo::InterfaceRequest<mojo::Application> application_request) { |
| 18 DCHECK(application_request.is_pending()); | 16 DCHECK(application_request.is_pending()); |
| 19 application_.reset( | 17 android_handler_.Bind(application_request.Pass()); |
| 20 new mojo::ApplicationImpl(&android_handler_, application_request.Pass())); | |
| 21 } | 18 } |
| 22 | 19 |
| 23 } // namespace shell | 20 } // namespace shell |
| OLD | NEW |