From 1722532e6d5eda81fe3af06985291cb3ced2adad Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 2 Jul 2014 16:48:54 +0800 Subject: [PATCH] No need to remember dock state. All devtools states are remembered by devtools itself now. --- brightray/browser/inspectable_web_contents_impl.cc | 9 --------- brightray/browser/inspectable_web_contents_impl.h | 1 - 2 files changed, 10 deletions(-) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index fa9b792976c..26fcc2b0f0f 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 913c59323c7..5c030a449f6 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_;