Index: chrome/browser/resources/shared/js/cr.js |
diff --git a/chrome/browser/resources/shared/js/cr.js b/chrome/browser/resources/shared/js/cr.js |
index ce703659b8d074664e32be9639649f39b52d36bf..2a7ab7823b4da1f373fb7f63bef6dfd04fa19365 100644 |
--- a/chrome/browser/resources/shared/js/cr.js |
+++ b/chrome/browser/resources/shared/js/cr.js |
@@ -346,12 +346,14 @@ this.cr = (function() { |
/** |
* Whether this uses GTK or not. |
*/ |
- cr.isGTK = /GTK/.test(chrome.toolkit); |
+ cr.isGTK = typeof chrome.getVariableValue == 'function' && |
+ /GTK/.test(chrome.getVariableValue('toolkit')); |
/** |
* Whether this uses the views toolkit or not. |
*/ |
- cr.isViews = /views/.test(chrome.toolkit); |
+ cr.isViews = typeof chrome.getVariableValue == 'function' && |
+ /views/.test(chrome.getVariableValue('toolkit')); |
} |
return { |