diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index fa9b792976..26fcc2b0f0 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -43,10 +43,6 @@ InspectableWebContentsImpl::InspectableWebContentsImpl( content::WebContents* web_contents) : web_contents_(web_contents), delegate_(nullptr) { - auto context = static_cast( - web_contents_->GetBrowserContext()); - is_docked_ = context->prefs()->GetBoolean(kIsDockedPref); - view_.reset(CreateInspectableContentsView(this)); } @@ -128,11 +124,6 @@ void InspectableWebContentsImpl::MoveWindow(int x, int y) { void InspectableWebContentsImpl::SetIsDocked(bool docked) { view_->SetIsDocked(docked); - is_docked_ = docked; - - auto context = static_cast( - web_contents_->GetBrowserContext()); - context->prefs()->SetBoolean(kIsDockedPref, docked); } void InspectableWebContentsImpl::OpenInNewTab(const std::string& url) { diff --git a/brightray/browser/inspectable_web_contents_impl.h b/brightray/browser/inspectable_web_contents_impl.h index 913c59323c..5c030a449f 100644 --- a/brightray/browser/inspectable_web_contents_impl.h +++ b/brightray/browser/inspectable_web_contents_impl.h @@ -105,7 +105,6 @@ class InspectableWebContentsImpl : scoped_ptr view_; scoped_refptr agent_host_; - bool is_docked_; DevToolsContentsResizingStrategy contents_resizing_strategy_; scoped_ptr embedder_message_dispatcher_;