Index: chrome/browser/ui/toolbar/wrench_menu_model.cc |
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.cc b/chrome/browser/ui/toolbar/wrench_menu_model.cc |
index 4057b53bd82945580a5dee4cd2d48e7e46e89718..27f91c39fdb638016cfb942a980715b98b64d54b 100644 |
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc |
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc |
@@ -283,6 +283,9 @@ WrenchMenuModel::WrenchMenuModel(ui::AcceleratorProvider* provider, |
Build(); |
UpdateZoomControls(); |
+ // By asking for the HostZoomMap via the BrowserContext, we get the map |
+ // associated with the default storage partition, and not the one related |
+ // to any specialized storage partitions, e.g. those used by WebViewGuests. |
content_zoom_subscription_ = |
content::HostZoomMap::GetDefaultForBrowserContext(browser->profile()) |
->AddZoomLevelChangedCallback(base::Bind( |