Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Issue 24839002: Fix WebstoreInlineInstaller ASAN bugs (Closed)

Created:
7 years, 2 months ago by Ken Rockot(use gerrit already)
Modified:
7 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Matt Perry
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix WebstoreInlineInstaller ASAN bugs Certain code paths which called back onto a raw pointer to a WebstoreInlineInstaller could not guarantee the object's existence at callback time. Additional ref counts have been added to ensure that this is no longer the case. BUG=236513, 241431, 241432, 247774, 263004 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228239

Patch Set 1 #

Total comments: 3

Patch Set 2 : test #

Patch Set 3 : nope #

Total comments: 6

Patch Set 4 : factor out webstore test fixture #

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : Fix comments #

Patch Set 7 : nit #

Patch Set 8 : please clang #

Patch Set 9 : oooops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -84 lines) Patch
M chrome/browser/extensions/tab_helper.h View 1 2 3 4 5 6 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 4 5 6 5 chunks +9 lines, -3 lines 0 comments Download
A chrome/browser/extensions/webstore_inline_installer_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/extensions/webstore_inline_installer_factory.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/extensions/webstore_inline_installer_factory.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/extensions/webstore_installer_test.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/extensions/webstore_installer_test.cc View 1 2 3 4 5 6 7 1 chunk +127 lines, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.cc View 1 2 3 4 5 6 7 8 6 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/extensions/webstore_startup_installer_browsertest.cc View 1 2 3 3 chunks +11 lines, -75 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Ken Rockot(use gerrit already)
PTAL!
7 years, 2 months ago (2013-09-26 21:16:01 UTC) #1
Ken Rockot(use gerrit already)
https://codereview.chromium.org/24839002/diff/1/chrome/browser/extensions/webstore_standalone_installer.cc File chrome/browser/extensions/webstore_standalone_installer.cc (right): https://codereview.chromium.org/24839002/diff/1/chrome/browser/extensions/webstore_standalone_installer.cc#newcode225 chrome/browser/extensions/webstore_standalone_installer.cc:225: FYI: I realize it is redundant to Add and ...
7 years, 2 months ago (2013-09-26 21:26:42 UTC) #2
asargent_no_longer_on_chrome
The code changes seem fine. Can you add a browser test that would crash if ...
7 years, 2 months ago (2013-09-27 22:00:19 UTC) #3
Ken Rockot(use gerrit already)
Added a test which will crash when ref count management is broken as it was ...
7 years, 2 months ago (2013-10-08 00:45:52 UTC) #4
asargent_no_longer_on_chrome
I think this approach is ok. Here's another possibility that came to mind though - ...
7 years, 2 months ago (2013-10-08 22:08:34 UTC) #5
Ken Rockot(use gerrit already)
To persist what we discussed offline, giving a UI-creation-callback to the inline installer would still ...
7 years, 2 months ago (2013-10-09 17:12:48 UTC) #6
Matt Perry
The factory approach SGTM. I don't have any better ideas. The AddRef/Release tangle is a ...
7 years, 2 months ago (2013-10-09 21:01:26 UTC) #7
Ken Rockot(use gerrit already)
On 2013/10/09 21:01:26, Matt Perry wrote: > The factory approach SGTM. I don't have any ...
7 years, 2 months ago (2013-10-09 21:10:16 UTC) #8
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/24839002/diff/18001/chrome/browser/extensions/tab_helper.h File chrome/browser/extensions/tab_helper.h (right): https://codereview.chromium.org/24839002/diff/18001/chrome/browser/extensions/tab_helper.h#newcode18 chrome/browser/extensions/tab_helper.h:18: #include "chrome/browser/extensions/webstore_inline_installer_factory.h" nit: can you move this include ...
7 years, 2 months ago (2013-10-10 05:27:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/24839002/28001
7 years, 2 months ago (2013-10-11 05:53:30 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-11 06:34:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/24839002/52001
7 years, 2 months ago (2013-10-11 14:36:51 UTC) #12
commit-bot: I haz the power
7 years, 2 months ago (2013-10-11 20:12:03 UTC) #13
Message was sent while issue was closed.
Change committed as 228239

Powered by Google App Engine
This is Rietveld 408576698