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

Issue 276573011: Remove deprecated extension notification from content_settings (Closed)

Created:
6 years, 7 months ago by limasdf
Modified:
6 years, 3 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, markusheintz_, extensions-reviews_chromium.org, tapted
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

remove deprecated extension notification from content_settings. Use ExtensionRegistryObserver instead. R=bauerb@chromium.org BUG=354046, 354458 TEST=unit_tests Committed: https://crrev.com/76ad58487578183de69a8caeb48b8a22dccad652 Cr-Commit-Position: refs/heads/master@{#294768}

Patch Set 1 : #

Patch Set 2 : fix unit_tests #

Total comments: 4

Patch Set 3 : review #

Total comments: 2

Patch Set 4 : remove unwanted header #

Patch Set 5 : remove observer from ShutdownOnUIThread #

Total comments: 2

Patch Set 6 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -86 lines) Patch
M chrome/browser/content_settings/content_settings_internal_extension_provider.h View 1 2 3 4 3 chunks +16 lines, -1 line 1 comment Download
M chrome/browser/content_settings/content_settings_internal_extension_provider.cc View 1 2 3 4 5 5 chunks +78 lines, -85 lines 0 comments Download

Messages

Total messages: 33 (6 generated)
limasdf
please take a look when you have time.
6 years, 7 months ago (2014-05-13 15:38:34 UTC) #1
Bernhard Bauer
LGTM, thanks!
6 years, 7 months ago (2014-05-13 15:46:23 UTC) #2
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 7 months ago (2014-05-13 15:51:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/276573011/20001
6 years, 7 months ago (2014-05-13 15:52:26 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 19:56:05 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-13 21:23:24 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/9889)
6 years, 7 months ago (2014-05-13 21:23:25 UTC) #7
limasdf
Bernhard, Could you take a look again? This fixes unit_tests.(Remove observer when ExtensionRegistry shutdown first).
6 years, 6 months ago (2014-06-10 08:53:49 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/276573011/diff/60001/chrome/browser/content_settings/content_settings_internal_extension_provider.cc File chrome/browser/content_settings/content_settings_internal_extension_provider.cc (right): https://codereview.chromium.org/276573011/diff/60001/chrome/browser/content_settings/content_settings_internal_extension_provider.cc#newcode43 chrome/browser/content_settings/content_settings_internal_extension_provider.cc:43: extension_registry_ = extensions::ExtensionRegistry::Get(profile); Could you initialize this in the ...
6 years, 6 months ago (2014-06-10 08:57:05 UTC) #9
limasdf
https://codereview.chromium.org/276573011/diff/60001/chrome/browser/content_settings/content_settings_internal_extension_provider.cc File chrome/browser/content_settings/content_settings_internal_extension_provider.cc (right): https://codereview.chromium.org/276573011/diff/60001/chrome/browser/content_settings/content_settings_internal_extension_provider.cc#newcode43 chrome/browser/content_settings/content_settings_internal_extension_provider.cc:43: extension_registry_ = extensions::ExtensionRegistry::Get(profile); On 2014/06/10 08:57:05, Bernhard Bauer wrote: ...
6 years, 6 months ago (2014-06-10 09:29:51 UTC) #10
Bernhard Bauer
lgtm https://codereview.chromium.org/276573011/diff/80001/chrome/browser/content_settings/content_settings_internal_extension_provider.h File chrome/browser/content_settings/content_settings_internal_extension_provider.h (right): https://codereview.chromium.org/276573011/diff/80001/chrome/browser/content_settings/content_settings_internal_extension_provider.h#newcode9 chrome/browser/content_settings/content_settings_internal_extension_provider.h:9: #include "base/scoped_observer.h" This isn't necessary anymore.
6 years, 6 months ago (2014-06-10 09:34:16 UTC) #11
limasdf
Thank you for the review! https://codereview.chromium.org/276573011/diff/80001/chrome/browser/content_settings/content_settings_internal_extension_provider.h File chrome/browser/content_settings/content_settings_internal_extension_provider.h (right): https://codereview.chromium.org/276573011/diff/80001/chrome/browser/content_settings/content_settings_internal_extension_provider.h#newcode9 chrome/browser/content_settings/content_settings_internal_extension_provider.h:9: #include "base/scoped_observer.h" On 2014/06/10 ...
6 years, 6 months ago (2014-06-10 09:37:17 UTC) #12
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-10 09:37:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/276573011/100001
6 years, 6 months ago (2014-06-10 09:40:12 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 14:52:41 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 16:09:00 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/36021)
6 years, 6 months ago (2014-06-10 16:09:01 UTC) #17
limasdf
Sorry to bother you again. This finally seems to fix. PTAL
6 years, 3 months ago (2014-09-14 06:22:11 UTC) #21
Bernhard Bauer
LGTM, just one nit: https://codereview.chromium.org/276573011/diff/220001/chrome/browser/content_settings/content_settings_internal_extension_provider.cc File chrome/browser/content_settings/content_settings_internal_extension_provider.cc (right): https://codereview.chromium.org/276573011/diff/220001/chrome/browser/content_settings/content_settings_internal_extension_provider.cc#newcode75 chrome/browser/content_settings/content_settings_internal_extension_provider.cc:75: DCHECK_EQ(type, extensions::NOTIFICATION_EXTENSION_HOST_CREATED); Nit: Put the ...
6 years, 3 months ago (2014-09-14 14:04:05 UTC) #22
limasdf
Thank you for the review https://codereview.chromium.org/276573011/diff/220001/chrome/browser/content_settings/content_settings_internal_extension_provider.cc File chrome/browser/content_settings/content_settings_internal_extension_provider.cc (right): https://codereview.chromium.org/276573011/diff/220001/chrome/browser/content_settings/content_settings_internal_extension_provider.cc#newcode75 chrome/browser/content_settings/content_settings_internal_extension_provider.cc:75: DCHECK_EQ(type, extensions::NOTIFICATION_EXTENSION_HOST_CREATED); On 2014/09/14 ...
6 years, 3 months ago (2014-09-14 14:08:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/276573011/240001
6 years, 3 months ago (2014-09-14 14:09:58 UTC) #25
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-14 16:10:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/276573011/240001
6 years, 3 months ago (2014-09-14 17:05:00 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:240001) as 31a96f8898f73bd7decd56c02aa0dff5877852a6
6 years, 3 months ago (2014-09-14 18:32:35 UTC) #30
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/76ad58487578183de69a8caeb48b8a22dccad652 Cr-Commit-Position: refs/heads/master@{#294768}
6 years, 3 months ago (2014-09-14 18:35:57 UTC) #31
limasdf
A revert of this CL (patchset #6 id:240001) has been created in https://codereview.chromium.org/553263004/ by limasdf@gmail.com. ...
6 years, 3 months ago (2014-09-15 00:21:09 UTC) #32
tapted
6 years, 3 months ago (2014-09-15 01:18:39 UTC) #33
Message was sent while issue was closed.
https://codereview.chromium.org/276573011/diff/240001/chrome/browser/content_...
File
chrome/browser/content_settings/content_settings_internal_extension_provider.h
(right):

https://codereview.chromium.org/276573011/diff/240001/chrome/browser/content_...
chrome/browser/content_settings/content_settings_internal_extension_provider.h:81:
extensions::ExtensionRegistry* extension_registry_;  // Not owned.
This extra state might not be necessary once
https://codereview.chromium.org/556173002/ lands. (waiting for that CL might
even help with the asan issue too)

Powered by Google App Engine
This is Rietveld 408576698