| Index: components/ui/zoom/zoom_controller.cc
|
| diff --git a/components/ui/zoom/zoom_controller.cc b/components/ui/zoom/zoom_controller.cc
|
| index 6df05d9e78c6abe316c6203a419f7a4e2b6acdc7..51dbf021b716bf7df6bf1be01ffa02926f28eb11 100644
|
| --- a/components/ui/zoom/zoom_controller.cc
|
| +++ b/components/ui/zoom/zoom_controller.cc
|
| @@ -341,4 +341,15 @@ void ZoomController::UpdateState(const std::string& host) {
|
| }
|
| }
|
|
|
| +void ZoomController::SetPageScaleFactorIsOneForTesting(bool is_one) {
|
| + int render_process_id = web_contents()->GetRenderProcessHost()->GetID();
|
| + int render_view_id = web_contents()->GetRenderViewHost()->GetRoutingID();
|
| + host_zoom_map_->SetPageScaleFactorIsOneForView(
|
| + render_process_id, render_view_id, is_one);
|
| +}
|
| +
|
| +bool ZoomController::PageScaleFactorIsOne() const {
|
| + return content::HostZoomMap::PageScaleFactorIsOne(web_contents());
|
| +}
|
| +
|
| } // namespace ui_zoom
|
|
|