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

Unified Diff: Source/devtools/front_end/settings/SettingsScreen.js

Issue 1066813003: DevTools: allow storing devtools preferences on the browser side. [blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
Index: Source/devtools/front_end/settings/SettingsScreen.js
diff --git a/Source/devtools/front_end/settings/SettingsScreen.js b/Source/devtools/front_end/settings/SettingsScreen.js
index 7104a2147a654389d10d865f6baa03446caf1d1e..e633f9327dc2d632c4781f2c154cc884336498c8 100644
--- a/Source/devtools/front_end/settings/SettingsScreen.js
+++ b/Source/devtools/front_end/settings/SettingsScreen.js
@@ -188,8 +188,7 @@ WebInspector.GenericSettingsTab = function()
function restoreAndReload()
{
- if (window.localStorage)
- window.localStorage.clear();
+ WebInspector.settings.clearAll();
WebInspector.reload();
}
}

Powered by Google App Engine
This is Rietveld 408576698