commit | c587f309e39c1713a00745f3f73442d93fa4687d | [log] [tgz] |
---|---|---|
author | jackhou <[email protected]> | Mon Apr 13 08:16:39 2015 |
committer | Commit bot <[email protected]> | Mon Apr 13 08:17:50 2015 |
tree | 14e789f750e6e7008c9be4e7f5406e0d565e9759 | |
parent | d9fe5343b311d2ac4ce8b538c4bc187b04c2651f [diff] |
Cache --whitelisted-extension-id in SimpleFeature. During startup, CommandLine::HasSwitch(kWhitelistedExtensionID) is called ~1000 times by SimpleFeature. It is the most common switch lookup, the second being kAppsGalleryUpdateUrl at ~300 times. Caching this avoids allocating and copying the string each time. BUG=471976,476061 Committed: https://crrev.com/16ca320592ce7ef6cd36500da6e670cc645781cd Cr-Commit-Position: refs/heads/master@{#324583} Review URL: https://codereview.chromium.org/1047943002 Cr-Commit-Position: refs/heads/master@{#324821}