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

Side by Side Diff: components/password_manager/content/renderer/credential_manager_client.cc

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698