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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2177983004: [DevTools] Do not use "settings" query param. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/devtools.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 0294bdeabff9fed220cf4eb7b3c958dd8389c569..a70788b26caf87161deb7430a47ab72b71d753ab 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -77,18 +77,6 @@ WebInspector.Main.prototype = {
*/
_createSettings: function(prefs)
{
- // Patch settings from the URL param (for tests).
- var settingsParam = Runtime.queryParam("settings");
- if (settingsParam) {
- try {
- var settings = JSON.parse(window.decodeURI(settingsParam));
- for (var key in settings)
- prefs[key] = settings[key];
- } catch (e) {
- // Ignore malformed settings.
- }
- }
-
this._initializeExperiments(prefs);
WebInspector.settings = new WebInspector.Settings(new WebInspector.SettingsStorage(prefs,
InspectorFrontendHost.setPreference, InspectorFrontendHost.removePreference, InspectorFrontendHost.clearPreferences));
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/devtools.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698