Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Fix printing and bind PasswordManagerDriver error
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Feb 8, 2017
1 parent f3df872 commit fa3fec8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions brave/browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ source_set("browser") {
"//components/autofill/content/browser:risk_proto",
"//components/autofill/content/browser",
"//components/autofill/core/browser",
"//components/password_manager/content/browser",
"//components/resources",
"//components/subresource_filter/content/browser",
"//components/subresource_filter/core/browser",
Expand Down
6 changes: 6 additions & 0 deletions brave/browser/brave_content_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/password_manager/content/browser/content_password_manager_driver_factory.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_process_host.h"
Expand Down Expand Up @@ -160,6 +161,11 @@ void BraveContentBrowserClient::RegisterRenderFrameMojoInterfaces(
registry->AddInterface(
base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
render_frame_host));

registry->AddInterface(
base::Bind(&password_manager::ContentPasswordManagerDriverFactory::
BindPasswordManagerDriver,
render_frame_host));
}

void BraveContentBrowserClient::RenderProcessWillLaunch(
Expand Down
4 changes: 2 additions & 2 deletions brave/renderer/brave_content_renderer_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ void BraveContentRendererClient::RenderFrameCreated(
new PasswordGenerationAgent(render_frame, password_autofill_agent);
new AutofillAgent(render_frame, password_autofill_agent,
password_generation_agent);
#if defined(ENABLE_PRINTING)
#if BUILDFLAG(ENABLE_PRINTING)
new printing::PrintWebViewHelper(
render_frame, base::MakeUnique(new BravePrintWebViewHelperDelegate());
render_frame, base::MakeUnique<BravePrintWebViewHelperDelegate>());
#endif
}

Expand Down

0 comments on commit fa3fec8

Please sign in to comment.