mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
No need to remember dock state.
All devtools states are remembered by devtools itself now.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user