Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @type {number} | 6 * @type {number} |
| 7 * @const | 7 * @const |
| 8 */ | 8 */ |
| 9 var FEEDBACK_WIDTH = 500; | 9 var FEEDBACK_WIDTH = 500; |
| 10 /** | 10 /** |
| 11 * @type {number} | 11 * @type {number} |
| 12 * @const | 12 * @const |
| 13 */ | 13 */ |
| 14 var FEEDBACK_HEIGHT = 625; | 14 var FEEDBACK_HEIGHT = 625; |
| 15 | 15 |
| 16 var initialFeedbackInfo = null; | 16 var initialFeedbackInfo = null; |
| 17 | 17 |
| 18 var whitelistedExtensionIds = [ | 18 var whitelistedExtensionIds = [ |
| 19 'bpmcpldpdmajfigpchkicefoigmkfalc', // QuickOffice | 19 'bpmcpldpdmajfigpchkicefoigmkfalc', // QuickOffice |
| 20 'ehibbfinohgbchlgdbfpikodjaojhccn', // QuickOffice | 20 'ehibbfinohgbchlgdbfpikodjaojhccn', // QuickOffice |
| 21 'gbkeegbaiigmenfmjfclcdgdpimamgkj', // QuickOffice | 21 'gbkeegbaiigmenfmjfclcdgdpimamgkj', // QuickOffice |
| 22 'efjnaogkjbogokcnohkmnjdojkikgobo', // G+ Photos | 22 'efjnaogkjbogokcnohkmnjdojkikgobo', // G+ Photos |
| 23 'ebpbnabdhheoknfklmpddcdijjkmklkp', // G+ Photoes | 23 'ebpbnabdhheoknfklmpddcdijjkmklkp', // G+ Photos |
| 24 'endkpmfloggdajndjpoekmkjnkolfdbf', // Feedback Extension | 24 'endkpmfloggdajndjpoekmkjnkolfdbf', // Feedback Extension |
| 25 'mlocfejafidcakdddnndjdngfmncfbeg', // Connectivity Diagnostics | 25 'mlocfejafidcakdddnndjdngfmncfbeg', // Connectivity Diagnostics |
| 26 'ganomidahfnpdchomfgdoppjmmedlhia', // Connectivity Diagnostics | 26 'ganomidahfnpdchomfgdoppjmmedlhia', // Connectivity Diagnostics |
| 27 'eemlkeanncmjljgehlbplemhmdmalhdc' // Connectivity Diagnostics | 27 'eemlkeanncmjljgehlbplemhmdmalhdc', // Connectivity Diagnostics |
| 28 'jndclpdbaamdhonoechobihbbiimdgai' // Chrome OS Recovery Tool | |
|
stephenlin
2013/12/19 20:32:50
Think we should create our dev/staging IDs and add
Drew Haven
2013/12/20 01:00:13
Apparently no obfuscation here. I'll create anoth
| |
| 28 ]; | 29 ]; |
| 29 | 30 |
| 30 /** | 31 /** |
| 31 * Function to determine whether or not a given extension id is whitelisted to | 32 * Function to determine whether or not a given extension id is whitelisted to |
| 32 * invoke the feedback UI. | 33 * invoke the feedback UI. |
| 33 * @param {string} id the id of the sender extension. | 34 * @param {string} id the id of the sender extension. |
| 34 * @return {boolean} Whether or not this sender is whitelisted. | 35 * @return {boolean} Whether or not this sender is whitelisted. |
| 35 */ | 36 */ |
| 36 function senderWhitelisted(id) { | 37 function senderWhitelisted(id) { |
| 37 return id && whitelistedExtensionIds.indexOf(id) != -1; | 38 return id && whitelistedExtensionIds.indexOf(id) != -1; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 width: FEEDBACK_WIDTH, | 80 width: FEEDBACK_WIDTH, |
| 80 height: FEEDBACK_HEIGHT, | 81 height: FEEDBACK_HEIGHT, |
| 81 hidden: true, | 82 hidden: true, |
| 82 resizable: false }, | 83 resizable: false }, |
| 83 function(appWindow) {}); | 84 function(appWindow) {}); |
| 84 } | 85 } |
| 85 | 86 |
| 86 chrome.runtime.onMessage.addListener(feedbackReadyHandler); | 87 chrome.runtime.onMessage.addListener(feedbackReadyHandler); |
| 87 chrome.runtime.onMessageExternal.addListener(requestFeedbackHandler); | 88 chrome.runtime.onMessageExternal.addListener(requestFeedbackHandler); |
| 88 chrome.feedbackPrivate.onFeedbackRequested.addListener(startFeedbackUI); | 89 chrome.feedbackPrivate.onFeedbackRequested.addListener(startFeedbackUI); |
| OLD | NEW |