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

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

Issue 2223093002: Merge to 2785 "[DevTools] Do not use "settings" query param." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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 f9f215d051075be6160b299321625dfc1a8e54ba..01cc9737b3b0343f28b5029a5f37a874ae80aea7 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -76,18 +76,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