| Index: content/browser/webui/web_ui_impl.cc
|
| diff --git a/content/browser/webui/web_ui_impl.cc b/content/browser/webui/web_ui_impl.cc
|
| index 1656b984f668dbd98d6d5763bb632cab3ae9e2b1..1050e615d39991efa60b87e50ade9829faefb82c 100644
|
| --- a/content/browser/webui/web_ui_impl.cc
|
| +++ b/content/browser/webui/web_ui_impl.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/utf_string_conversions.h"
|
| #include "base/values.h"
|
| #include "content/browser/child_process_security_policy_impl.h"
|
| +#include "content/browser/renderer_host/dip_util.h"
|
| #include "content/browser/renderer_host/render_process_host_impl.h"
|
| #include "content/browser/renderer_host/render_view_host_impl.h"
|
| #include "content/browser/web_contents/web_contents_impl.h"
|
| @@ -116,6 +117,10 @@ WebContents* WebUIImpl::GetWebContents() const {
|
| return web_contents_;
|
| }
|
|
|
| +float WebUIImpl::GetDeviceScale() const {
|
| + return GetDIPScaleFactor(web_contents_->GetRenderWidgetHostView());
|
| +}
|
| +
|
| bool WebUIImpl::ShouldHideFavicon() const {
|
| return hide_favicon_;
|
| }
|
|
|