|
|
Created:
6 years, 7 months ago by not at google - send to devlin Modified:
6 years, 7 months ago Reviewers:
Marijn Kruisselbrink CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionDon't try to reload blacklisted extensions.
BUG=373842
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272378
Patch Set 1 #Patch Set 2 : add test #Patch Set 3 : expect_eq #
Total comments: 2
Patch Set 4 : safer references #Patch Set 5 : defined #Patch Set 6 : rebase #Patch Set 7 : real rebase #
Messages
Total messages: 34 (0 generated)
https://codereview.chromium.org/291603002/diff/40001/chrome/browser/extension... File chrome/browser/extensions/extension_service.h (right): https://codereview.chromium.org/291603002/diff/40001/chrome/browser/extension... chrome/browser/extensions/extension_service.h:196: void ReloadExtension(const std::string& extension_id); Is this safe? Presumably the same comment as in UninstallExtension below applies ("We pass the |extension_id| by value to avoid having it deleted from under us incase someone calls it with Extension::id() or another string that we are going to delete in this function.") Although it seems somebody recently (incorrectly?) changed the UninstallExtension paramtere to be a reference in https://src.chromium.org/viewvc/chrome?revision=267343&view=revision without updating the comment.
https://codereview.chromium.org/291603002/diff/40001/chrome/browser/extension... File chrome/browser/extensions/extension_service.h (right): https://codereview.chromium.org/291603002/diff/40001/chrome/browser/extension... chrome/browser/extensions/extension_service.h:196: void ReloadExtension(const std::string& extension_id); On 2014/05/19 20:10:32, Marijn Kruisselbrink wrote: > Is this safe? Presumably the same comment as in UninstallExtension below applies > ("We pass the |extension_id| by value to avoid having it deleted from under us > incase someone calls it with Extension::id() or another string that we are going > to delete in this function.") > > Although it seems somebody recently (incorrectly?) changed the > UninstallExtension paramtere to be a reference in > https://src.chromium.org/viewvc/chrome?revision=267343&view=revision without > updating the comment. Ah. Good point, very subtle. "const std::string" without the reference is nonsensical and confusing. I don't think it's great as a concern of the interface to this class. Seems kind of flaky. I'll update the implementations to be safe in this regard.
lgtm
The CQ bit was checked by kalman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/291603002/60001
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are real, and report flakes to chrome-troopers@google.com. The failing builders are: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/bui...) android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...) win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/bui...)
The CQ bit was checked by kalman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/291603002/80001
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are real, and report flakes to chrome-troopers@google.com. The failing builders are: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...) linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...)
The CQ bit was checked by kalman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/291603002/80001
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are real, and report flakes to chrome-troopers@google.com. The failing builders are: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...) linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...)
The CQ bit was checked by kalman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/291603002/80001
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are real, and report flakes to chrome-troopers@google.com. The failing builders are: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...) linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...) linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...)
The CQ bit was checked by kalman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/291603002/80001
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are real, and report flakes to chrome-troopers@google.com. The failing builders are: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...) linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...)
The CQ bit was checked by kalman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/291603002/120001
The CQ bit was checked by kalman@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/291603002/140001
Message was sent while issue was closed.
Change committed as 272378 |