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

Unified Diff: third_party/WebKit/Source/devtools/front_end/host/Platform.js

Issue 2487373002: DevTools: settings of custom devtools should not interfere with bundled devtools (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/host/Platform.js
diff --git a/third_party/WebKit/Source/devtools/front_end/host/Platform.js b/third_party/WebKit/Source/devtools/front_end/host/Platform.js
index 7b80c2348bd56ab16f1d2d6b67b7ffdde26446b8..0f8a86bc50adae47f2663ced28df4d9fd7e08a64 100644
--- a/third_party/WebKit/Source/devtools/front_end/host/Platform.js
+++ b/third_party/WebKit/Source/devtools/front_end/host/Platform.js
@@ -55,6 +55,15 @@ WebInspector.isWin = function() {
};
/**
+ * @return {boolean}
+ */
+WebInspector.isCustomDevtoolsFrontend = function() {
+ if (typeof WebInspector._isCustomDevtoolsFronend === 'undefined')
+ WebInspector._isCustomDevtoolsFronend = window.location.toString().startsWith('chrome-devtools://devtools/custom/');
+ return WebInspector._isCustomDevtoolsFronend;
+};
+
+/**
* @return {string}
*/
WebInspector.fontFamily = function() {

Powered by Google App Engine
This is Rietveld 408576698