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 c29f71ddcd0fdcbe62bddc869590cd48ed7c4458..36ecafcb7be9ec5696d0870fb412909fb34defff 100644 |
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc |
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc |
@@ -282,6 +282,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( |