| 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 93ece73f9492e9d54c4d014565956e722f54eeb3..919f96c5d53bfc77d8488df11912ff077172d6a3 100644
|
| --- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
|
| +++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
|
| @@ -78,7 +78,6 @@
|
| #endif
|
|
|
| using base::UserMetricsAction;
|
| -using content::HostZoomMap;
|
| using content::WebContents;
|
|
|
| namespace {
|
| @@ -285,10 +284,13 @@ WrenchMenuModel::WrenchMenuModel(ui::AcceleratorProvider* provider,
|
| Build();
|
| UpdateZoomControls();
|
|
|
| - content_zoom_subscription_ = content::HostZoomMap::GetForBrowserContext(
|
| - browser->profile())->AddZoomLevelChangedCallback(
|
| - base::Bind(&WrenchMenuModel::OnZoomLevelChanged,
|
| - base::Unretained(this)));
|
| + // 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(
|
| + &WrenchMenuModel::OnZoomLevelChanged, base::Unretained(this)));
|
|
|
| browser_zoom_subscription_ = ZoomEventManager::GetForBrowserContext(
|
| browser->profile())->AddZoomLevelChangedCallback(
|
|
|