No need to remember dock state.
All devtools states are remembered by devtools itself now.
This commit is contained in:
parent
7a2dc3fc4f
commit
1722532e6d
2 changed files with 0 additions and 10 deletions
|
@ -43,10 +43,6 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
|
||||||
content::WebContents* web_contents)
|
content::WebContents* web_contents)
|
||||||
: web_contents_(web_contents),
|
: web_contents_(web_contents),
|
||||||
delegate_(nullptr) {
|
delegate_(nullptr) {
|
||||||
auto context = static_cast<BrowserContext*>(
|
|
||||||
web_contents_->GetBrowserContext());
|
|
||||||
is_docked_ = context->prefs()->GetBoolean(kIsDockedPref);
|
|
||||||
|
|
||||||
view_.reset(CreateInspectableContentsView(this));
|
view_.reset(CreateInspectableContentsView(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,11 +124,6 @@ void InspectableWebContentsImpl::MoveWindow(int x, int y) {
|
||||||
|
|
||||||
void InspectableWebContentsImpl::SetIsDocked(bool docked) {
|
void InspectableWebContentsImpl::SetIsDocked(bool docked) {
|
||||||
view_->SetIsDocked(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) {
|
void InspectableWebContentsImpl::OpenInNewTab(const std::string& url) {
|
||||||
|
|
|
@ -105,7 +105,6 @@ class InspectableWebContentsImpl :
|
||||||
scoped_ptr<InspectableWebContentsView> view_;
|
scoped_ptr<InspectableWebContentsView> view_;
|
||||||
scoped_refptr<content::DevToolsAgentHost> agent_host_;
|
scoped_refptr<content::DevToolsAgentHost> agent_host_;
|
||||||
|
|
||||||
bool is_docked_;
|
|
||||||
DevToolsContentsResizingStrategy contents_resizing_strategy_;
|
DevToolsContentsResizingStrategy contents_resizing_strategy_;
|
||||||
|
|
||||||
scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_;
|
scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_;
|
||||||
|
|
Loading…
Reference in a new issue