Call content::WebContentsObserver first
This commit is contained in:
parent
8c2cf03f37
commit
d7ab142e10
1 changed files with 3 additions and 3 deletions
|
@ -20,10 +20,10 @@ namespace atom {
|
||||||
|
|
||||||
WebContentsZoomController::WebContentsZoomController(
|
WebContentsZoomController::WebContentsZoomController(
|
||||||
content::WebContents* web_contents)
|
content::WebContents* web_contents)
|
||||||
: old_process_id_(-1),
|
: content::WebContentsObserver(web_contents),
|
||||||
|
old_process_id_(-1),
|
||||||
old_view_id_(-1),
|
old_view_id_(-1),
|
||||||
embedder_zoom_controller_(nullptr),
|
embedder_zoom_controller_(nullptr) {
|
||||||
content::WebContentsObserver(web_contents) {
|
|
||||||
default_zoom_factor_ = content::kEpsilon;
|
default_zoom_factor_ = content::kEpsilon;
|
||||||
host_zoom_map_ = content::HostZoomMap::GetForWebContents(web_contents);
|
host_zoom_map_ = content::HostZoomMap::GetForWebContents(web_contents);
|
||||||
zoom_subscription_ = host_zoom_map_->AddZoomLevelChangedCallback(base::Bind(
|
zoom_subscription_ = host_zoom_map_->AddZoomLevelChangedCallback(base::Bind(
|
||||||
|
|
Loading…
Add table
Reference in a new issue