|
@@ -58,6 +58,7 @@
|
|
|
#if BUILDFLAG(ENABLE_PRINTING)
|
|
|
#include "atom/renderer/printing/print_render_frame_helper_delegate.h"
|
|
|
#include "components/printing/renderer/print_render_frame_helper.h"
|
|
|
+#include "printing/print_settings.h"
|
|
|
#endif // BUILDFLAG(ENABLE_PRINTING)
|
|
|
|
|
|
namespace atom {
|
|
@@ -288,6 +289,12 @@ bool RendererClientBase::IsKeySystemsUpdateNeeded() {
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
+void RendererClientBase::DidSetUserAgent(const std::string& user_agent) {
|
|
|
+#if BUILDFLAG(ENABLE_PRINTING)
|
|
|
+ printing::SetAgent(user_agent);
|
|
|
+#endif
|
|
|
+}
|
|
|
+
|
|
|
v8::Local<v8::Context> RendererClientBase::GetContext(
|
|
|
blink::WebLocalFrame* frame,
|
|
|
v8::Isolate* isolate) const {
|