I know two ways of getting Google Chrome Extension ID:
chrome.app.getDetails().id;
chrome.i18n.getMessage('@@extension_id');
Are there any drawbacks regarding one of those?
I tend to use the first one since it's shorter but who knows. I may be wrong.
---- EDIT ----
Since I'm the only who cares, here's what I did to benchmark those:
console.time('t1');
for (var i=0; i < 10000; i++) { chrome.app.getDetails().id; };
console.timeEnd('t1');
console.time('t2');
for (var i=0; i < 10000; i++) { chrome.i18n.getMessage('@@extension_id'); };
console.timeEnd('t2');
Here are the results:
t1: 5190.766ms
t2: 860.697ms
It looks like using i18n is so much faster overall but the first one is faster at the beginning and after 3 or 4 executions, i18n is better.