[chrome-gnome-shell] Disable update check for system extensions.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell] Disable update check for system extensions.
- Date: Fri, 23 Sep 2016 17:04:10 +0000 (UTC)
commit 2aacd9587dd5b892e0b12cd22b19477448507661
Author: Yuri Konotopov <ykonotopov gmail com>
Date: Fri Sep 23 20:03:54 2016 +0300
Disable update check for system extensions.
extension/include/constants.js | 6 ++++++
extension/include/update.js | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/extension/include/constants.js b/extension/include/constants.js
index 0afb333..96ae2ab 100644
--- a/extension/include/constants.js
+++ b/extension/include/constants.js
@@ -65,3 +65,9 @@ EXTENSION_STATE = {
// should never be in a real extensionMeta object.
UNINSTALLED: 99
};
+
+// gnome-shell/js/misc/extensionUtils.js
+EXTENSION_TYPE = {
+ SYSTEM: 1,
+ PER_USER: 2
+};
diff --git a/extension/include/update.js b/extension/include/update.js
index 8a9885a..36fd788 100644
--- a/extension/include/update.js
+++ b/extension/include/update.js
@@ -45,7 +45,7 @@ GSC.update = (function($) {
for (uuid in extensionsResponse.extensions)
{
- if (GSC.isUUID(uuid))
+ if (GSC.isUUID(uuid) &&
extensionsResponse.extensions[uuid].type == EXTENSION_TYPE.PER_USER)
{
request.installed[uuid] = {version:
parseInt(extensionsResponse.extensions[uuid].version) || 1};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]