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

Unified Diff: chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr.js

Issue 1185363002: webui: Do not set 'toolkit' property for webui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr.js
diff --git a/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr.js b/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr.js
index 7b6dd3055dc3022ad54202ade73d6d9e25f0a62a..a1d84abf7d542e3a393fe2474a5d84ec3eb2b55e 100644
--- a/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr.js
+++ b/chrome/common/extensions/docs/examples/extensions/plugin_settings/domui/js/cr.js
@@ -29,20 +29,6 @@ const cr = (function() {
const isLinux = /Linux/.test(navigator.userAgent);
/**
- * Whether this uses GTK or not.
- * @type {boolean}
- */
- const isGTK = typeof chrome.getVariableValue == 'function' &&
- /GTK/.test(chrome.getVariableValue('toolkit'));
-
- /**
- * Whether this uses the views toolkit or not.
- * @type {boolean}
- */
- const isViews = typeof chrome.getVariableValue == 'function' &&
- /views/.test(chrome.getVariableValue('toolkit'));
-
- /**
* Sets the os and toolkit attributes in the <html> element so that platform
* specific css rules can be applied.
*/
@@ -55,10 +41,6 @@ const cr = (function() {
doc.documentElement.setAttribute('os', 'chromeos');
if (isLinux)
doc.documentElement.setAttribute('os', 'linux');
- if (isGTK)
- doc.documentElement.setAttribute('toolkit', 'gtk');
- if (isViews)
- doc.documentElement.setAttribute('toolkit', 'views');
}
/**
@@ -331,7 +313,6 @@ const cr = (function() {
isMac: isMac,
isWindows: isWindows,
isLinux: isLinux,
- isViews: isViews,
enablePlatformSpecificCSSRules: enablePlatformSpecificCSSRules,
define: define,
defineProperty: defineProperty,
« no previous file with comments | « chrome/common/extensions/docs/examples/api/fontSettings/js/cr.js ('k') | content/browser/webui/web_ui_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698