Index: chrome/browser/ui/webui/ntp/ntp_login_handler.cc |
diff --git a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc |
index 84f8290e67655f88329a4d43da213b1e04113cff..e170f7795deb2bc27e1f0622d9eaac2de989c090 100644 |
--- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc |
+++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc |
@@ -32,6 +32,7 @@ |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
#include "components/signin/core/browser/signin_manager.h" |
+#include "content/public/browser/host_zoom_map.h" |
#include "content/public/browser/notification_details.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/web_contents.h" |
@@ -156,7 +157,8 @@ void NTPLoginHandler::HandleShowSyncLoginUI(const base::ListValue* args) { |
success = args->GetDouble(3, &height); |
DCHECK(success); |
- double zoom = content::ZoomLevelToZoomFactor(web_contents->GetZoomLevel()); |
+ double zoom = content::ZoomLevelToZoomFactor( |
+ content::HostZoomMap::GetZoomLevel(web_contents)); |
gfx::Rect rect(x * zoom, y * zoom, width * zoom, height * zoom); |
browser->window()->ShowAvatarBubble(web_ui()->GetWebContents(), rect); |