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

Issue 545413002: Detach the dependency from host_content_settings_map to extension. (Closed)

Created:
6 years, 3 months ago by Jun Mukai
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, markusheintz_, yoshiki+watch_chromium.org, rginda+watch_chromium.org, extensions-reviews_chromium.org, vabr (Chromium), blundell
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Detach the dependency from host_content_settings_map to extension. In order to componentize host_content_settings_map, one big obstacle is the extension system. This CL changes the direction of the dependency. old: host_content_settings_map register extension system new: host_content_settings_map accepts providers which allows extension system to register itself. I believe this is a better design. BUG=384869 R=yoz@chromium.org, markusheintz@chromium.org, bauerb@chromium.org TBR=rlp@chromium.org, sky@chromium.org TEST=no regression Committed: https://crrev.com/87a8d403e43c43bc4c5f24102531b9f15d794263 Cr-Commit-Position: refs/heads/master@{#294877}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : remove two unnecessary includes #

Patch Set 5 : fix #

Total comments: 4

Patch Set 6 : Remove ProviderType #

Total comments: 1

Patch Set 7 : revert the previous patchset #

Total comments: 2

Patch Set 8 : todo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -57 lines) Patch
M chrome/browser/content_settings/host_content_settings_map.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 3 4 5 6 3 chunks +18 lines, -44 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
Jun Mukai
6 years, 3 months ago (2014-09-05 23:57:55 UTC) #1
Yoyo Zhou
LGTM with nits https://codereview.chromium.org/545413002/diff/20001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): https://codereview.chromium.org/545413002/diff/20001/chrome/browser/content_settings/host_content_settings_map.cc#newcode133 chrome/browser/content_settings/host_content_settings_map.cc:133: DCHECK(used_from_thread_id_ != base::kInvalidThreadId) DCHECK_NE https://codereview.chromium.org/545413002/diff/20001/chrome/browser/extensions/extension_service.h File ...
6 years, 3 months ago (2014-09-08 19:51:26 UTC) #2
Jun Mukai
https://codereview.chromium.org/545413002/diff/20001/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): https://codereview.chromium.org/545413002/diff/20001/chrome/browser/content_settings/host_content_settings_map.cc#newcode133 chrome/browser/content_settings/host_content_settings_map.cc:133: DCHECK(used_from_thread_id_ != base::kInvalidThreadId) On 2014/09/08 19:51:26, Yoyo Zhou wrote: ...
6 years, 3 months ago (2014-09-08 20:01:39 UTC) #3
Jun Mukai
bauerb, could you take a look?
6 years, 3 months ago (2014-09-11 00:01:02 UTC) #5
Bernhard Bauer
+vabr https://codereview.chromium.org/545413002/diff/80001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): https://codereview.chromium.org/545413002/diff/80001/chrome/browser/content_settings/host_content_settings_map.h#newcode50 chrome/browser/content_settings/host_content_settings_map.h:50: INTERNAL_EXTENSION_PROVIDER = 0, Hm... here we still have ...
6 years, 3 months ago (2014-09-11 09:39:29 UTC) #7
Jun Mukai
https://codereview.chromium.org/545413002/diff/80001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): https://codereview.chromium.org/545413002/diff/80001/chrome/browser/content_settings/host_content_settings_map.h#newcode50 chrome/browser/content_settings/host_content_settings_map.h:50: INTERNAL_EXTENSION_PROVIDER = 0, On 2014/09/11 09:39:29, Bernhard Bauer wrote: ...
6 years, 3 months ago (2014-09-11 22:58:37 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/545413002/diff/80001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): https://codereview.chromium.org/545413002/diff/80001/chrome/browser/content_settings/host_content_settings_map.h#newcode50 chrome/browser/content_settings/host_content_settings_map.h:50: INTERNAL_EXTENSION_PROVIDER = 0, On 2014/09/11 22:58:37, Jun Mukai wrote: ...
6 years, 3 months ago (2014-09-12 09:07:25 UTC) #9
Jun Mukai
https://codereview.chromium.org/545413002/diff/80001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): https://codereview.chromium.org/545413002/diff/80001/chrome/browser/content_settings/host_content_settings_map.h#newcode50 chrome/browser/content_settings/host_content_settings_map.h:50: INTERNAL_EXTENSION_PROVIDER = 0, On 2014/09/12 09:07:25, Bernhard Bauer wrote: ...
6 years, 3 months ago (2014-09-12 20:21:05 UTC) #10
Bernhard Bauer
LGTM https://codereview.chromium.org/545413002/diff/120001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): https://codereview.chromium.org/545413002/diff/120001/chrome/browser/content_settings/host_content_settings_map.h#newcode50 chrome/browser/content_settings/host_content_settings_map.h:50: INTERNAL_EXTENSION_PROVIDER = 0, Can you add a TODO ...
6 years, 3 months ago (2014-09-15 09:07:58 UTC) #11
Jun Mukai
https://codereview.chromium.org/545413002/diff/120001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): https://codereview.chromium.org/545413002/diff/120001/chrome/browser/content_settings/host_content_settings_map.h#newcode50 chrome/browser/content_settings/host_content_settings_map.h:50: INTERNAL_EXTENSION_PROVIDER = 0, On 2014/09/15 09:07:58, Bernhard Bauer wrote: ...
6 years, 3 months ago (2014-09-15 16:49:26 UTC) #13
Jun Mukai
The following files need OWNERS: chrome/browser/profiles/off_the_record_profile_impl.cc chrome/browser/profiles/profile_manager.cc chrome/test/base/testing_profile.cc Let me move forward with TBR=rlp, sky ...
6 years, 3 months ago (2014-09-15 16:51:31 UTC) #15
sky
Said files LGTM
6 years, 3 months ago (2014-09-15 17:10:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/545413002/140001
6 years, 3 months ago (2014-09-15 17:18:24 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:140001) as d55576790b0f53b255cbc04e46db44769ce2eb79
6 years, 3 months ago (2014-09-15 20:16:37 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 20:21:14 UTC) #20
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/87a8d403e43c43bc4c5f24102531b9f15d794263
Cr-Commit-Position: refs/heads/master@{#294877}

Powered by Google App Engine
This is Rietveld 408576698