{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments/136171155","pull_request_review_id":59673294,"id":136171155,"diff_hunk":"@@ -39,16 +40,32 @@ const BUILT_IN_SECTIONS = {\n \n const SectionsManager = {\n   ACTIONS_TO_PROXY: [\"SYSTEM_TICK\", \"NEW_TAB_LOAD\"],\n+  CONTEXT_MENU_PREFS: {\"SaveToPocket\": \"extensions.pocket.enabled\"},\n   initialized: false,\n   sections: new Map(),\n   init(prefs = {}) {\n     for (const feedPrefName of Object.keys(BUILT_IN_SECTIONS)) {\n       const optionsPrefName = `${feedPrefName}.options`;\n       this.addBuiltInSection(feedPrefName, prefs[optionsPrefName]);\n     }\n+\n+    Object.keys(this.CONTEXT_MENU_PREFS).forEach(k =>\n+      Services.prefs.addObserver(this.CONTEXT_MENU_PREFS[k], this));\n+\n     this.initialized = true;\n     this.emit(this.INIT);\n   },\n+  observe(subject, topic, data) {\n+    switch (topic) {\n+      case \"nsPref:changed\":\n+        for (const pref of Object.keys(this.CONTEXT_MENU_PREFS)) {\n+          if (data === this.CONTEXT_MENU_PREFS[pref]) {","path":"system-addon/lib/SectionsManager.jsm","position":40,"original_position":40,"commit_id":"a52dc049b79e69146ed5e42f6f7aac7045cf45c5","original_commit_id":"a52dc049b79e69146ed5e42f6f7aac7045cf45c5","user":{"login":"Mardak","id":438537,"avatar_url":"https://avatars0.githubusercontent.com/u/438537?v=4","gravatar_id":"","url":"https://api.github.com/users/Mardak","html_url":"https://github.com/Mardak","followers_url":"https://api.github.com/users/Mardak/followers","following_url":"https://api.github.com/users/Mardak/following{/other_user}","gists_url":"https://api.github.com/users/Mardak/gists{/gist_id}","starred_url":"https://api.github.com/users/Mardak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mardak/subscriptions","organizations_url":"https://api.github.com/users/Mardak/orgs","repos_url":"https://api.github.com/users/Mardak/repos","events_url":"https://api.github.com/users/Mardak/events{/privacy}","received_events_url":"https://api.github.com/users/Mardak/received_events","type":"User","site_admin":false},"body":"Ha. If only it were a `Map` could have just done `.has(data)` ;)","created_at":"2017-08-30T19:48:41Z","updated_at":"2017-08-30T19:48:41Z","html_url":"https://github.com/mozilla/activity-stream/pull/3292#discussion_r136171155","pull_request_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/3292","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments/136171155"},"html":{"href":"https://github.com/mozilla/activity-stream/pull/3292#discussion_r136171155"},"pull_request":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/3292"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/activity-stream/pulls/3292","id":138328603,"html_url":"https://github.com/mozilla/activity-stream/pull/3292","diff_url":"https://github.com/mozilla/activity-stream/pull/3292.diff","patch_url":"https://github.com/mozilla/activity-stream/pull/3292.patch","issue_url":"https://api.github.com/repos/mozilla/activity-stream/issues/3292","number":3292,"state":"closed","locked":false,"title":"fix(pocket): Remove Save to Pocket option if Pocket is disabled","user":{"login":"csadilek","id":472523,"avatar_url":"https://avatars1.githubusercontent.com/u/472523?v=4","gravatar_id":"","url":"https://api.github.com/users/csadilek","html_url":"https://github.com/csadilek","followers_url":"https://api.github.com/users/csadilek/followers","following_url":"https://api.github.com/users/csadilek/following{/other_user}","gists_url":"https://api.github.com/users/csadilek/gists{/gist_id}","starred_url":"https://api.github.com/users/csadilek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csadilek/subscriptions","organizations_url":"https://api.github.com/users/csadilek/orgs","repos_url":"https://api.github.com/users/csadilek/repos","events_url":"https://api.github.com/users/csadilek/events{/privacy}","received_events_url":"https://api.github.com/users/csadilek/received_events","type":"User","site_admin":false},"body":"Closes #3268","created_at":"2017-08-30T03:18:08Z","updated_at":"2017-08-30T19:48:41Z","closed_at":"2017-08-30T19:45:45Z","merged_at":"2017-08-30T19:45:45Z","merge_commit_sha":"1d123c9c9e6da5c17b90d1c6efce3e1ce61f2af9","assignee":{"login":"Mardak","id":438537,"avatar_url":"https://avatars0.githubusercontent.com/u/438537?v=4","gravatar_id":"","url":"https://api.github.com/users/Mardak","html_url":"https://github.com/Mardak","followers_url":"https://api.github.com/users/Mardak/followers","following_url":"https://api.github.com/users/Mardak/following{/other_user}","gists_url":"https://api.github.com/users/Mardak/gists{/gist_id}","starred_url":"https://api.github.com/users/Mardak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mardak/subscriptions","organizations_url":"https://api.github.com/users/Mardak/orgs","repos_url":"https://api.github.com/users/Mardak/repos","events_url":"https://api.github.com/users/Mardak/events{/privacy}","received_events_url":"https://api.github.com/users/Mardak/received_events","type":"User","site_admin":false},"assignees":[{"login":"Mardak","id":438537,"avatar_url":"https://avatars0.githubusercontent.com/u/438537?v=4","gravatar_id":"","url":"https://api.github.com/users/Mardak","html_url":"https://github.com/Mardak","followers_url":"https://api.github.com/users/Mardak/followers","following_url":"https://api.github.com/users/Mardak/following{/other_user}","gists_url":"https://api.github.com/users/Mardak/gists{/gist_id}","starred_url":"https://api.github.com/users/Mardak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mardak/subscriptions","organizations_url":"https://api.github.com/users/Mardak/orgs","repos_url":"https://api.github.com/users/Mardak/repos","events_url":"https://api.github.com/users/Mardak/events{/privacy}","received_events_url":"https://api.github.com/users/Mardak/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"AdamHillier","id":7688302,"avatar_url":"https://avatars3.githubusercontent.com/u/7688302?v=4","gravatar_id":"","url":"https://api.github.com/users/AdamHillier","html_url":"https://github.com/AdamHillier","followers_url":"https://api.github.com/users/AdamHillier/followers","following_url":"https://api.github.com/users/AdamHillier/following{/other_user}","gists_url":"https://api.github.com/users/AdamHillier/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamHillier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamHillier/subscriptions","organizations_url":"https://api.github.com/users/AdamHillier/orgs","repos_url":"https://api.github.com/users/AdamHillier/repos","events_url":"https://api.github.com/users/AdamHillier/events{/privacy}","received_events_url":"https://api.github.com/users/AdamHillier/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/3292/commits","review_comments_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/3292/comments","review_comment_url":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/activity-stream/issues/3292/comments","statuses_url":"https://api.github.com/repos/mozilla/activity-stream/statuses/a52dc049b79e69146ed5e42f6f7aac7045cf45c5","head":{"label":"csadilek:3268","ref":"3268","sha":"a52dc049b79e69146ed5e42f6f7aac7045cf45c5","user":{"login":"csadilek","id":472523,"avatar_url":"https://avatars1.githubusercontent.com/u/472523?v=4","gravatar_id":"","url":"https://api.github.com/users/csadilek","html_url":"https://github.com/csadilek","followers_url":"https://api.github.com/users/csadilek/followers","following_url":"https://api.github.com/users/csadilek/following{/other_user}","gists_url":"https://api.github.com/users/csadilek/gists{/gist_id}","starred_url":"https://api.github.com/users/csadilek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csadilek/subscriptions","organizations_url":"https://api.github.com/users/csadilek/orgs","repos_url":"https://api.github.com/users/csadilek/repos","events_url":"https://api.github.com/users/csadilek/events{/privacy}","received_events_url":"https://api.github.com/users/csadilek/received_events","type":"User","site_admin":false},"repo":{"id":87861718,"name":"activity-stream","full_name":"csadilek/activity-stream","owner":{"login":"csadilek","id":472523,"avatar_url":"https://avatars1.githubusercontent.com/u/472523?v=4","gravatar_id":"","url":"https://api.github.com/users/csadilek","html_url":"https://github.com/csadilek","followers_url":"https://api.github.com/users/csadilek/followers","following_url":"https://api.github.com/users/csadilek/following{/other_user}","gists_url":"https://api.github.com/users/csadilek/gists{/gist_id}","starred_url":"https://api.github.com/users/csadilek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csadilek/subscriptions","organizations_url":"https://api.github.com/users/csadilek/orgs","repos_url":"https://api.github.com/users/csadilek/repos","events_url":"https://api.github.com/users/csadilek/events{/privacy}","received_events_url":"https://api.github.com/users/csadilek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/csadilek/activity-stream","description":" MVP prototype add-on for activity streams","fork":true,"url":"https://api.github.com/repos/csadilek/activity-stream","forks_url":"https://api.github.com/repos/csadilek/activity-stream/forks","keys_url":"https://api.github.com/repos/csadilek/activity-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csadilek/activity-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csadilek/activity-stream/teams","hooks_url":"https://api.github.com/repos/csadilek/activity-stream/hooks","issue_events_url":"https://api.github.com/repos/csadilek/activity-stream/issues/events{/number}","events_url":"https://api.github.com/repos/csadilek/activity-stream/events","assignees_url":"https://api.github.com/repos/csadilek/activity-stream/assignees{/user}","branches_url":"https://api.github.com/repos/csadilek/activity-stream/branches{/branch}","tags_url":"https://api.github.com/repos/csadilek/activity-stream/tags","blobs_url":"https://api.github.com/repos/csadilek/activity-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csadilek/activity-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csadilek/activity-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/csadilek/activity-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csadilek/activity-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/csadilek/activity-stream/languages","stargazers_url":"https://api.github.com/repos/csadilek/activity-stream/stargazers","contributors_url":"https://api.github.com/repos/csadilek/activity-stream/contributors","subscribers_url":"https://api.github.com/repos/csadilek/activity-stream/subscribers","subscription_url":"https://api.github.com/repos/csadilek/activity-stream/subscription","commits_url":"https://api.github.com/repos/csadilek/activity-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/csadilek/activity-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/csadilek/activity-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/csadilek/activity-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/csadilek/activity-stream/contents/{+path}","compare_url":"https://api.github.com/repos/csadilek/activity-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csadilek/activity-stream/merges","archive_url":"https://api.github.com/repos/csadilek/activity-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csadilek/activity-stream/downloads","issues_url":"https://api.github.com/repos/csadilek/activity-stream/issues{/number}","pulls_url":"https://api.github.com/repos/csadilek/activity-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/csadilek/activity-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/csadilek/activity-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csadilek/activity-stream/labels{/name}","releases_url":"https://api.github.com/repos/csadilek/activity-stream/releases{/id}","deployments_url":"https://api.github.com/repos/csadilek/activity-stream/deployments","created_at":"2017-04-10T22:03:33Z","updated_at":"2017-04-10T22:03:35Z","pushed_at":"2017-08-30T19:36:43Z","git_url":"git://github.com/csadilek/activity-stream.git","ssh_url":"git@github.com:csadilek/activity-stream.git","clone_url":"https://github.com/csadilek/activity-stream.git","svn_url":"https://github.com/csadilek/activity-stream","homepage":"","size":5749,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"c9c4f4b9a45acb42cb75def15c33a8464a0c9afd","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":50695589,"name":"activity-stream","full_name":"mozilla/activity-stream","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/activity-stream","description":"A refreshed \"new tab page\" for Firefox","fork":false,"url":"https://api.github.com/repos/mozilla/activity-stream","forks_url":"https://api.github.com/repos/mozilla/activity-stream/forks","keys_url":"https://api.github.com/repos/mozilla/activity-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/activity-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/activity-stream/teams","hooks_url":"https://api.github.com/repos/mozilla/activity-stream/hooks","issue_events_url":"https://api.github.com/repos/mozilla/activity-stream/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/activity-stream/events","assignees_url":"https://api.github.com/repos/mozilla/activity-stream/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/activity-stream/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/activity-stream/tags","blobs_url":"https://api.github.com/repos/mozilla/activity-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/activity-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/activity-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/activity-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/activity-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/activity-stream/languages","stargazers_url":"https://api.github.com/repos/mozilla/activity-stream/stargazers","contributors_url":"https://api.github.com/repos/mozilla/activity-stream/contributors","subscribers_url":"https://api.github.com/repos/mozilla/activity-stream/subscribers","subscription_url":"https://api.github.com/repos/mozilla/activity-stream/subscription","commits_url":"https://api.github.com/repos/mozilla/activity-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/activity-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/activity-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/activity-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/activity-stream/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/activity-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/activity-stream/merges","archive_url":"https://api.github.com/repos/mozilla/activity-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/activity-stream/downloads","issues_url":"https://api.github.com/repos/mozilla/activity-stream/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/activity-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/activity-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/activity-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/activity-stream/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/activity-stream/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/activity-stream/deployments","created_at":"2016-01-29T22:28:26Z","updated_at":"2017-08-27T23:26:29Z","pushed_at":"2017-08-30T19:48:07Z","git_url":"git://github.com/mozilla/activity-stream.git","ssh_url":"git@github.com:mozilla/activity-stream.git","clone_url":"https://github.com/mozilla/activity-stream.git","svn_url":"https://github.com/mozilla/activity-stream","homepage":"","size":6307,"stargazers_count":116,"watchers_count":116,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":132,"forks":56,"open_issues":132,"watchers":116,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/3292"},"html":{"href":"https://github.com/mozilla/activity-stream/pull/3292"},"issue":{"href":"https://api.github.com/repos/mozilla/activity-stream/issues/3292"},"comments":{"href":"https://api.github.com/repos/mozilla/activity-stream/issues/3292/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/3292/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/activity-stream/pulls/3292/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/activity-stream/statuses/a52dc049b79e69146ed5e42f6f7aac7045cf45c5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Mardak"}}