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

Issue 2299373002: Revert of Fix WebRequest's EventListener::operator< (Closed)

Created:
4 years, 3 months ago by mmenke
Modified:
4 years, 3 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Fix WebRequest's EventListener::operator< (patchset #3 id:40001 of https://codereview.chromium.org/2121873002/ ) Reason for revert: This may have caused a perf regression. Reverting to verify. If it did not, I'll reland next week. BUG=641958, 643025 Original issue's description: > Fix WebRequest's EventListener::operator< > > std::set's count() method is expected to return 0 or 1. But due > to the fact that EventListener::operator< conditionally ignored > |embedder_process_id|, the count method could return more than 1 > (e.g. 2) in release builds on Windows (VC++), and fail an assertion. > > This assertion failure shows that the assumption about the uniqueness > of EventListeners (while ignoring the |embedder_process_id| value) does > not hold, i.e. there may be more than one non-webview EventListeners > with the same |extension_id| and |sub_event_name|, but different > |embedder_process_id|. > > To fix this, this patch removes the conditional exclusion of > |embedder_process_id| from operator< and looks up |embedder_process_id| > before searching through the set. > > BUG=589735 > TEST=./unit_tests --gtest_filter=ExtensionWebRequestTest.AddAndRemoveListeners > > Committed: https://crrev.com/c89943b168ef2ccc51f3ec0720e552f36ec31351 > Cr-Commit-Position: refs/heads/master@{#404456} TBR=rockot@chromium.org,rob@robwu.nl # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=589735 Committed: https://crrev.com/e579d519620e6583ddc304f22c4c3c71dabbbe20 Cr-Commit-Position: refs/heads/master@{#416094}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -60 lines) Patch
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 chunk +0 lines, -32 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api.h View 1 chunk +0 lines, -4 lines 0 comments Download
M extensions/browser/api/web_request/web_request_api.cc View 4 chunks +37 lines, -24 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
mmenke
Created Revert of Fix WebRequest's EventListener::operator<
4 years, 3 months ago (2016-09-01 21:30:44 UTC) #2
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/2299373002/1
4 years, 3 months ago (2016-09-01 21:32:25 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-01 22:41:33 UTC) #7
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 22:43:40 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e579d519620e6583ddc304f22c4c3c71dabbbe20
Cr-Commit-Position: refs/heads/master@{#416094}

Powered by Google App Engine
This is Rietveld 408576698