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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/OverridesSupport.js

Issue 1460433002: [DevTools] Persist device mode state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/emulation/DeviceModeView.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/emulation/OverridesSupport.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/OverridesSupport.js b/third_party/WebKit/Source/devtools/front_end/emulation/OverridesSupport.js
index 3326d81e175c552a3398c76037dea23962bcbe33..c3478a83ddb2935a4e45d2c476b5a3b90f71a486 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/OverridesSupport.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/OverridesSupport.js
@@ -758,7 +758,8 @@ WebInspector.OverridesSupport.prototype = {
_onMainFrameNavigated: function()
{
- this._deviceMetricsChanged(false);
+ if (!Runtime.experiments.isEnabled("deviceMode"))
+ this._deviceMetricsChanged(false);
this._updateUserAgentWarningMessage("");
this._updateDeviceMetricsWarningMessage("");
},
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698