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

Side by Side Diff: components/password_manager/content/browser/content_password_manager_driver.cc

Issue 2419063003: Move services/shell to services/service_manager (Closed)
Patch Set: Created 4 years, 2 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/browser/content_password_manager_d river.h" 5 #include "components/password_manager/content/browser/content_password_manager_d river.h"
6 6
7 #include "components/autofill/content/browser/content_autofill_driver.h" 7 #include "components/autofill/content/browser/content_autofill_driver.h"
8 #include "components/autofill/core/common/form_data.h" 8 #include "components/autofill/core/common/form_data.h"
9 #include "components/autofill/core/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 #include "components/password_manager/content/browser/bad_message.h" 10 #include "components/password_manager/content/browser/bad_message.h"
11 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h" 11 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
12 #include "components/password_manager/core/browser/log_manager.h" 12 #include "components/password_manager/core/browser/log_manager.h"
13 #include "components/password_manager/core/browser/password_manager.h" 13 #include "components/password_manager/core/browser/password_manager.h"
14 #include "components/password_manager/core/browser/password_manager_client.h" 14 #include "components/password_manager/core/browser/password_manager_client.h"
15 #include "content/public/browser/browser_context.h" 15 #include "content/public/browser/browser_context.h"
16 #include "content/public/browser/child_process_security_policy.h" 16 #include "content/public/browser/child_process_security_policy.h"
17 #include "content/public/browser/navigation_details.h" 17 #include "content/public/browser/navigation_details.h"
18 #include "content/public/browser/navigation_entry.h" 18 #include "content/public/browser/navigation_entry.h"
19 #include "content/public/browser/render_frame_host.h" 19 #include "content/public/browser/render_frame_host.h"
20 #include "content/public/browser/render_process_host.h" 20 #include "content/public/browser/render_process_host.h"
21 #include "content/public/browser/render_view_host.h" 21 #include "content/public/browser/render_view_host.h"
22 #include "content/public/browser/site_instance.h" 22 #include "content/public/browser/site_instance.h"
23 #include "content/public/browser/ssl_status.h" 23 #include "content/public/browser/ssl_status.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "content/public/common/origin_util.h" 25 #include "content/public/common/origin_util.h"
26 #include "net/cert/cert_status_flags.h" 26 #include "net/cert/cert_status_flags.h"
27 #include "services/shell/public/cpp/interface_provider.h" 27 #include "services/service_manager/public/cpp/interface_provider.h"
28 28
29 namespace password_manager { 29 namespace password_manager {
30 30
31 namespace { 31 namespace {
32 32
33 void MaybeNotifyPasswordInputShownOnHttp(content::RenderFrameHost* rfh) { 33 void MaybeNotifyPasswordInputShownOnHttp(content::RenderFrameHost* rfh) {
34 content::WebContents* web_contents = 34 content::WebContents* web_contents =
35 content::WebContents::FromRenderFrameHost(rfh); 35 content::WebContents::FromRenderFrameHost(rfh);
36 if (!content::IsOriginSecure(web_contents->GetVisibleURL())) { 36 if (!content::IsOriginSecure(web_contents->GetVisibleURL())) {
37 web_contents->OnPasswordInputShownOnHttp(); 37 web_contents->OnPasswordInputShownOnHttp();
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 ContentPasswordManagerDriver::GetPasswordGenerationAgent() { 322 ContentPasswordManagerDriver::GetPasswordGenerationAgent() {
323 if (!password_gen_agent_) { 323 if (!password_gen_agent_) {
324 render_frame_host_->GetRemoteInterfaces()->GetInterface( 324 render_frame_host_->GetRemoteInterfaces()->GetInterface(
325 mojo::GetProxy(&password_gen_agent_)); 325 mojo::GetProxy(&password_gen_agent_));
326 } 326 }
327 327
328 return password_gen_agent_; 328 return password_gen_agent_;
329 } 329 }
330 330
331 } // namespace password_manager 331 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698