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

Issue 227943003: Add experiment to measure time to hash extension content as we read it (Closed)

Created:
6 years, 8 months ago by asargent_no_longer_on_chrome
Modified:
6 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Add experiment to measure time to hash extension content as we read it This required adding 2 new methods to URLRequestFileJob to let subclasses get notified when seeks and reads complete, so that our URLRequestExtensionJob class is able to compute the hash of the content read and know what bytes from the file those correspond to (e.g. if there was a Range specified and we didn't read all the bytes). BUG=360909 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263571

Patch Set 1 : #

Total comments: 32

Patch Set 2 : responded to review comments #

Total comments: 2

Patch Set 3 : fixed unit test per last comment #

Patch Set 4 : merged latest trunk, fixed compile problem #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -21 lines) Patch
M extensions/browser/extension_protocols.cc View 1 2 3 8 chunks +72 lines, -13 lines 0 comments Download
M net/net.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_file_job.h View 1 3 chunks +7 lines, -3 lines 0 comments Download
M net/url_request/url_request_file_job.cc View 1 2 3 5 chunks +17 lines, -5 lines 0 comments Download
A net/url_request/url_request_file_job_unittest.cc View 1 2 3 1 chunk +253 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
asargent_no_longer_on_chrome
rvargas: please review net/ stuff Thanks!
6 years, 8 months ago (2014-04-08 00:24:34 UTC) #1
rvargas (doing something else)
looks good https://codereview.chromium.org/227943003/diff/20001/chrome/browser/extensions/extension_protocols.cc File chrome/browser/extensions/extension_protocols.cc (right): https://codereview.chromium.org/227943003/diff/20001/chrome/browser/extensions/extension_protocols.cc#newcode315 chrome/browser/extensions/extension_protocols.cc:315: hashing_time_ += timer.Elapsed(); hashing_time_ = https://codereview.chromium.org/227943003/diff/20001/chrome/browser/extensions/extension_protocols.cc#newcode346 chrome/browser/extensions/extension_protocols.cc:346: ...
6 years, 8 months ago (2014-04-08 16:53:45 UTC) #2
asargent_no_longer_on_chrome
Responded to comments. Please take another look. https://codereview.chromium.org/227943003/diff/20001/chrome/browser/extensions/extension_protocols.cc File chrome/browser/extensions/extension_protocols.cc (right): https://codereview.chromium.org/227943003/diff/20001/chrome/browser/extensions/extension_protocols.cc#newcode315 chrome/browser/extensions/extension_protocols.cc:315: hashing_time_ += ...
6 years, 8 months ago (2014-04-09 20:59:58 UTC) #3
rvargas (doing something else)
Just one relevant comment on the test. LGTM after that. https://codereview.chromium.org/227943003/diff/20001/net/url_request/url_request_file_job.cc File net/url_request/url_request_file_job.cc (right): https://codereview.chromium.org/227943003/diff/20001/net/url_request/url_request_file_job.cc#newcode106 ...
6 years, 8 months ago (2014-04-09 23:48:49 UTC) #4
asargent_no_longer_on_chrome
+rockot -> please review chrome/browser/extensions/ https://codereview.chromium.org/227943003/diff/40001/net/url_request/url_request_file_job_unittest.cc File net/url_request/url_request_file_job_unittest.cc (right): https://codereview.chromium.org/227943003/diff/40001/net/url_request/url_request_file_job_unittest.cc#newcode110 net/url_request/url_request_file_job_unittest.cc:110: if (!base::CreateTemporaryFileInDir(directory->path(), path)) On ...
6 years, 8 months ago (2014-04-10 00:17:27 UTC) #5
Ken Rockot(use gerrit already)
lgtm
6 years, 8 months ago (2014-04-10 00:44:18 UTC) #6
rvargas (doing something else)
Still lgtm
6 years, 8 months ago (2014-04-10 22:04:52 UTC) #7
asargent_no_longer_on_chrome
The CQ bit was checked by asargent@chromium.org
6 years, 8 months ago (2014-04-13 20:50:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asargent@chromium.org/227943003/60001
6 years, 8 months ago (2014-04-13 20:50:33 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-13 20:50:39 UTC) #10
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_protocols.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 8 months ago (2014-04-13 20:50:39 UTC) #11
asargent_no_longer_on_chrome
The CQ bit was checked by asargent@chromium.org
6 years, 8 months ago (2014-04-13 22:07:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asargent@chromium.org/227943003/100001
6 years, 8 months ago (2014-04-13 22:07:24 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 00:43:27 UTC) #14
Message was sent while issue was closed.
Change committed as 263571

Powered by Google App Engine
This is Rietveld 408576698