Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: chrome/browser/ui/webui/devtools_ui.cc

Issue 2566573002: DevTools: Open Elements panel sooner on Inspect Element (Closed)
Patch Set: Compatibility Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/devtools_ui.h" 5 #include "chrome/browser/ui/webui/devtools_ui.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return "true"; 137 return "true";
138 138
139 // Pass connection endpoints as is. 139 // Pass connection endpoints as is.
140 if (key == "ws" || key == "service-backend") 140 if (key == "ws" || key == "service-backend")
141 return SanitizeEndpoint(value); 141 return SanitizeEndpoint(value);
142 142
143 // Only support undocked for old frontends. 143 // Only support undocked for old frontends.
144 if (key == "dockSide" && value == "undocked") 144 if (key == "dockSide" && value == "undocked")
145 return value; 145 return value;
146 146
147 if (key == "panel" &&
148 (value == "elements" || value == "security" || value == "console"))
149 return value;
150
147 if (key == "remoteBase") 151 if (key == "remoteBase")
148 return SanitizeRemoteBase(value); 152 return SanitizeRemoteBase(value);
149 153
150 if (key == "remoteFrontendUrl") 154 if (key == "remoteFrontendUrl")
151 return SanitizeRemoteFrontendURL(value); 155 return SanitizeRemoteFrontendURL(value);
152 156
153 return std::string(); 157 return std::string();
154 } 158 }
155 159
156 GURL SanitizeFrontendURL( 160 GURL SanitizeFrontendURL(
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 if (profile->IsOffTheRecord()) { 451 if (profile->IsOffTheRecord()) {
448 GURL site = content::SiteInstance::GetSiteForURL(profile, url); 452 GURL site = content::SiteInstance::GetSiteForURL(profile, url);
449 content::BrowserContext::GetStoragePartitionForSite(profile, site)-> 453 content::BrowserContext::GetStoragePartitionForSite(profile, site)->
450 GetFileSystemContext()->EnableTemporaryFileSystemInIncognito(); 454 GetFileSystemContext()->EnableTemporaryFileSystemInIncognito();
451 } 455 }
452 bindings_.reset(new DevToolsUIBindings(web_ui->GetWebContents())); 456 bindings_.reset(new DevToolsUIBindings(web_ui->GetWebContents()));
453 } 457 }
454 458
455 DevToolsUI::~DevToolsUI() { 459 DevToolsUI::~DevToolsUI() {
456 } 460 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698