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

Unified Diff: Source/devtools/front_end/sdk/OverridesSupport.js

Issue 555433002: [DevTools] Add "never show" link to emulation warning. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 3 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/sdk/OverridesSupport.js
diff --git a/Source/devtools/front_end/sdk/OverridesSupport.js b/Source/devtools/front_end/sdk/OverridesSupport.js
index f649a79f74e3a6ff4c251942072d80efa7d4e00f..6868018e6d2a7ba3c0cf037de34d630797437f5b 100644
--- a/Source/devtools/front_end/sdk/OverridesSupport.js
+++ b/Source/devtools/front_end/sdk/OverridesSupport.js
@@ -474,8 +474,6 @@ WebInspector.OverridesSupport.prototype = {
WebInspector.settings.showMetricsRulers.addChangeListener(this._showRulersChanged, this);
this._showRulersChanged();
- WebInspector.settings.disableOverridesWarning.addChangeListener(this._dispatchWarningChanged, this);
-
if (!this.emulationEnabled())
return;
@@ -761,7 +759,7 @@ WebInspector.OverridesSupport.prototype = {
*/
warningMessage: function()
{
- return WebInspector.settings.disableOverridesWarning.get() ? "" : (this._deviceMetricsWarningMessage || this._userAgentWarningMessage || "");
+ return this._deviceMetricsWarningMessage || this._userAgentWarningMessage || "";
},
clearWarningMessage: function()
« no previous file with comments | « Source/devtools/front_end/responsiveDesignView.css ('k') | Source/devtools/front_end/toolbox/ResponsiveDesignView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698