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

Issue 8529001: Fix crash in ExtensionService::SetIsIncognitoEnabled. (Closed)

Created:
9 years, 1 month ago by jstritar
Modified:
9 years, 1 month ago
Reviewers:
Finnur
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Fix crash in ExtensionService::SetIsIncognitoEnabled. Make a copy of the extension id from within ExtensionService::SetIsIncognitoEnabled, since the const ref may get wiped out when reloading the extension. BUG=103762 TEST=no crash when toggling incognito mode for an extension Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109676

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M chrome/browser/extensions/extension_service.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
jstritar
9 years, 1 month ago (2011-11-10 20:52:27 UTC) #1
Finnur
http://codereview.chromium.org/8529001/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/8529001/diff/1/chrome/browser/extensions/extension_service.cc#newcode1459 chrome/browser/extensions/extension_service.cc:1459: std::string extension_id, bool enabled) { I wonder if people ...
9 years, 1 month ago (2011-11-10 21:48:44 UTC) #2
Finnur
jstritar: Can you change the BUG reference in the CL description to 103762, as it ...
9 years, 1 month ago (2011-11-11 09:54:08 UTC) #3
jstritar
Good advice, very misleading. I made a copy from within SetIsIncognitoEnabled since the issue is ...
9 years, 1 month ago (2011-11-11 15:53:15 UTC) #4
Finnur
LGTM, one nit (feel free to ignore) http://codereview.chromium.org/8529001/diff/5001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/8529001/diff/5001/chrome/browser/extensions/extension_service.cc#newcode1463 chrome/browser/extensions/extension_service.cc:1463: std::string id ...
9 years, 1 month ago (2011-11-11 16:01:07 UTC) #5
jstritar
http://codereview.chromium.org/8529001/diff/5001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/8529001/diff/5001/chrome/browser/extensions/extension_service.cc#newcode1463 chrome/browser/extensions/extension_service.cc:1463: std::string id = extension_id; On 2011/11/11 16:01:07, Finnur wrote: ...
9 years, 1 month ago (2011-11-11 16:31:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/8529001/8001
9 years, 1 month ago (2011-11-11 16:31:53 UTC) #7
commit-bot: I haz the power
Try job failure for 8529001-8001 (retry) on win_rel for step "ui_tests" (clobber build). It's a ...
9 years, 1 month ago (2011-11-11 18:04:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/8529001/8001
9 years, 1 month ago (2011-11-11 18:19:20 UTC) #9
commit-bot: I haz the power
9 years, 1 month ago (2011-11-11 19:41:35 UTC) #10
Change committed as 109676

Powered by Google App Engine
This is Rietveld 408576698