| 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 "components/password_manager/content/renderer/credential_manager_client
.h" | 5 #include "components/password_manager/content/renderer/credential_manager_client
.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 void CredentialManagerClient::ConnectToMojoCMIfNeeded() { | 210 void CredentialManagerClient::ConnectToMojoCMIfNeeded() { |
| 211 if (mojo_cm_service_) | 211 if (mojo_cm_service_) |
| 212 return; | 212 return; |
| 213 | 213 |
| 214 content::RenderFrame* main_frame = render_view()->GetMainRenderFrame(); | 214 content::RenderFrame* main_frame = render_view()->GetMainRenderFrame(); |
| 215 main_frame->GetServiceRegistry()->ConnectToRemoteService( | 215 main_frame->GetServiceRegistry()->ConnectToRemoteService( |
| 216 mojo::GetProxy(&mojo_cm_service_)); | 216 mojo::GetProxy(&mojo_cm_service_)); |
| 217 } | 217 } |
| 218 | 218 |
| 219 void CredentialManagerClient::OnDestruct() { |
| 220 delete this; |
| 221 } |
| 222 |
| 219 } // namespace password_manager | 223 } // namespace password_manager |
| OLD | NEW |