Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Issue 2493053002: [extensions] Stop parsing webstore urls so much (Closed)

Created:
4 years, 1 month ago by Charlie Harrison
Modified:
4 years, 1 month ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[extensions] Stop parsing webstore urls so much The following hooks parse the webstore url per request, sometimes twice. - OnHeadersReceived - OnResponseStarted - OnBeforeRequest - OnBeforeSendHeaders - OnSendHeaders - OnCompleted This accounts for ~3% of task CPU time on the IO thread from loading http://cr.kungfoo.net/loading/1000spacers/ on Linux. This patch just caches the url at the ExtensionsClient layer, so we never have to do this more than once. BUG=664174 Committed: https://crrev.com/4ff7b40b01046d703b33c4c96a491fdb923d20cd Cr-Commit-Position: refs/heads/master@{#431771}

Patch Set 1 #

Patch Set 2 : still need to check cmd line every time :( #

Total comments: 3

Patch Set 3 : rdevlin review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -23 lines) Patch
M chrome/browser/extensions/chrome_content_verifier_delegate.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.h View 1 3 chunks +5 lines, -1 line 0 comments Download
M chrome/common/extensions/chrome_extensions_client.cc View 1 2 1 chunk +13 lines, -5 lines 0 comments Download
M chrome/common/extensions/extension_constants.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_constants.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/common/extension_urls.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/extensions_client.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/common/shell_extensions_client.h View 3 chunks +4 lines, -1 line 0 comments Download
M extensions/shell/common/shell_extensions_client.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/test/test_extensions_client.h View 3 chunks +4 lines, -1 line 0 comments Download
M extensions/test/test_extensions_client.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (18 generated)
Charlie Harrison
Hey Devlin, here's the followup I mentioned yesterday. This fixes a problem where we are ...
4 years, 1 month ago (2016-11-11 15:57:41 UTC) #13
Devlin
lgtm w/ nit https://codereview.chromium.org/2493053002/diff/20001/chrome/common/extensions/chrome_extensions_client.cc File chrome/common/extensions/chrome_extensions_client.cc (right): https://codereview.chromium.org/2493053002/diff/20001/chrome/common/extensions/chrome_extensions_client.cc#newcode285 chrome/common/extensions/chrome_extensions_client.cc:285: // Browser tests like to alter ...
4 years, 1 month ago (2016-11-11 23:11:31 UTC) #14
Charlie Harrison
thanks! https://codereview.chromium.org/2493053002/diff/20001/chrome/common/extensions/extension_constants.cc File chrome/common/extensions/extension_constants.cc (right): https://codereview.chromium.org/2493053002/diff/20001/chrome/common/extensions/extension_constants.cc#newcode18 chrome/common/extensions/extension_constants.cc:18: std::string GetDefaultWebstoreUpdateUrl() { On 2016/11/11 23:11:31, Devlin (slow) ...
4 years, 1 month ago (2016-11-12 02:24:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2493053002/40001
4 years, 1 month ago (2016-11-12 02:25:34 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-12 04:42:08 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 04:46:41 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4ff7b40b01046d703b33c4c96a491fdb923d20cd
Cr-Commit-Position: refs/heads/master@{#431771}

Powered by Google App Engine
This is Rietveld 408576698