No need to remember dock state.

All devtools states are remembered by devtools itself now.
This commit is contained in:
Cheng Zhao 2014-07-02 16:48:54 +08:00
parent 7a2dc3fc4f
commit 1722532e6d
2 changed files with 0 additions and 10 deletions

View file

@ -43,10 +43,6 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
content::WebContents* web_contents)
: web_contents_(web_contents),
delegate_(nullptr) {
auto context = static_cast<BrowserContext*>(
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<BrowserContext*>(
web_contents_->GetBrowserContext());
context->prefs()->SetBoolean(kIsDockedPref, docked);
}
void InspectableWebContentsImpl::OpenInNewTab(const std::string& url) {

View file

@ -105,7 +105,6 @@ class InspectableWebContentsImpl :
scoped_ptr<InspectableWebContentsView> view_;
scoped_refptr<content::DevToolsAgentHost> agent_host_;
bool is_docked_;
DevToolsContentsResizingStrategy contents_resizing_strategy_;
scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_;