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

Issue 596613002: Remove content dependencies from content settings providers. (Closed)

Created:
6 years, 3 months ago by Jun Mukai
Modified:
6 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, markusheintz_, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove content dependencies from content settings providers. BUG=384876 R=bauerb@chromium.org, markusheintz@chromium.org, vabr@chromium.org, rlp@chromium.org TEST=no functional changes Committed: https://crrev.com/55fab14d5efed15eec5d91b536a80607f58800d6 Cr-Commit-Position: refs/heads/master@{#297288}

Patch Set 1 #

Patch Set 2 : typo #

Patch Set 3 : shutdown fix #

Total comments: 17

Patch Set 4 : addressing comments #

Patch Set 5 : ThreadChecker #

Patch Set 6 : browser_tests fix #

Total comments: 5

Patch Set 7 : thread checker -> MessageLoopForUI::IsCurrent() #

Patch Set 8 : remains browserthread::ui #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -9 lines) Patch
M chrome/browser/content_settings/content_settings_default_provider.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/content_settings/content_settings_internal_extension_provider.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 43 (8 generated)
Jun Mukai
PTAL One a bit controversy thing is replacing DCHECK_CURRENTLY_ON(BrowserThread::UI) by CalledOnValidThread(). Based on the TODO ...
6 years, 3 months ago (2014-09-23 00:26:18 UTC) #2
blundell
lgtm assuming all the tests pass https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/host_content_settings_map.h#newcode50 chrome/browser/content_settings/host_content_settings_map.h:50: public base::NonThreadSafe, This ...
6 years, 3 months ago (2014-09-23 07:27:00 UTC) #4
blundell
oops, not lgtm pending the question I had in the review
6 years, 3 months ago (2014-09-23 07:27:16 UTC) #5
vabr (Chromium)
https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_default_provider.cc File chrome/browser/content_settings/content_settings_default_provider.cc (right): https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_default_provider.cc#newcode12 chrome/browser/content_settings/content_settings_default_provider.cc:12: #include "base/bind.h" Why did you include this? (Also in ...
6 years, 3 months ago (2014-09-23 07:51:00 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc File chrome/browser/content_settings/content_settings_policy_provider_unittest.cc (left): https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc#oldcode45 chrome/browser/content_settings/content_settings_policy_provider_unittest.cc:45: content::TestBrowserThread ui_thread_; There is content::TestBrowserThreadBundle now to replace these ...
6 years, 3 months ago (2014-09-23 10:08:19 UTC) #7
Jun Mukai
https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_default_provider.cc File chrome/browser/content_settings/content_settings_default_provider.cc (right): https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_default_provider.cc#newcode12 chrome/browser/content_settings/content_settings_default_provider.cc:12: #include "base/bind.h" On 2014/09/23 07:51:00, vabr (Chromium) wrote: > ...
6 years, 3 months ago (2014-09-23 20:48:45 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc File chrome/browser/content_settings/content_settings_policy_provider_unittest.cc (left): https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc#oldcode45 chrome/browser/content_settings/content_settings_policy_provider_unittest.cc:45: content::TestBrowserThread ui_thread_; On 2014/09/23 20:48:44, Jun Mukai wrote: > ...
6 years, 3 months ago (2014-09-24 08:15:31 UTC) #9
blundell
lgtm pending resolution of others' comments
6 years, 3 months ago (2014-09-24 08:36:17 UTC) #10
vabr (Chromium)
LGTM, Thanks for your work on this! Vaclav https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_default_provider.cc File chrome/browser/content_settings/content_settings_default_provider.cc (right): https://codereview.chromium.org/596613002/diff/40001/chrome/browser/content_settings/content_settings_default_provider.cc#newcode12 chrome/browser/content_settings/content_settings_default_provider.cc:12: #include ...
6 years, 3 months ago (2014-09-24 09:56:39 UTC) #11
Jun Mukai
Changed to ThreadChecker approach. PTAL. Note that host_content_settings_unittest.cc needs to have BrowserThreads because of cookie_settings.cc ...
6 years, 2 months ago (2014-09-24 22:35:51 UTC) #12
Bernhard Bauer
LGTM On 2014/09/24 22:35:51, Jun Mukai wrote: > Changed to ThreadChecker approach. PTAL. > > ...
6 years, 2 months ago (2014-09-25 08:40:24 UTC) #13
blundell
On 2014/09/25 08:40:24, Bernhard Bauer wrote: > LGTM > > On 2014/09/24 22:35:51, Jun Mukai ...
6 years, 2 months ago (2014-09-25 09:08:41 UTC) #14
vabr (Chromium)
On 2014/09/25 09:08:41, blundell wrote: > On 2014/09/25 08:40:24, Bernhard Bauer wrote: > > LGTM ...
6 years, 2 months ago (2014-09-25 10:46:10 UTC) #15
Jun Mukai
On 2014/09/25 10:46:10, vabr (Chromium) wrote: > On 2014/09/25 09:08:41, blundell wrote: > > On ...
6 years, 2 months ago (2014-09-25 19:30:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596613002/80001
6 years, 2 months ago (2014-09-25 19:32:03 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/13560)
6 years, 2 months ago (2014-09-25 19:44:47 UTC) #20
Bernhard Bauer
On 2014/09/25 19:30:26, Jun Mukai wrote: > On 2014/09/25 10:46:10, vabr (Chromium) wrote: > > ...
6 years, 2 months ago (2014-09-25 23:40:20 UTC) #21
Jun Mukai
rlp -- please review for chrome/browser/profiles/
6 years, 2 months ago (2014-09-26 01:21:49 UTC) #23
rpetterson
https://codereview.chromium.org/596613002/diff/100001/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): https://codereview.chromium.org/596613002/diff/100001/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode357 chrome/browser/profiles/off_the_record_profile_impl.cc:357: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); Is there a reason not to have this ...
6 years, 2 months ago (2014-09-26 03:46:35 UTC) #24
Jun Mukai
https://codereview.chromium.org/596613002/diff/100001/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): https://codereview.chromium.org/596613002/diff/100001/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode357 chrome/browser/profiles/off_the_record_profile_impl.cc:357: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); On 2014/09/26 03:46:34, rpetterson wrote: > Is there ...
6 years, 2 months ago (2014-09-26 07:45:14 UTC) #25
blundell
https://codereview.chromium.org/596613002/diff/100001/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): https://codereview.chromium.org/596613002/diff/100001/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode357 chrome/browser/profiles/off_the_record_profile_impl.cc:357: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); On 2014/09/26 07:45:14, Jun Mukai wrote: > On ...
6 years, 2 months ago (2014-09-26 07:50:41 UTC) #26
Jun Mukai
https://codereview.chromium.org/596613002/diff/100001/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): https://codereview.chromium.org/596613002/diff/100001/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode357 chrome/browser/profiles/off_the_record_profile_impl.cc:357: DCHECK_CURRENTLY_ON(content::BrowserThread::UI); On 2014/09/26 07:50:41, blundell wrote: > On 2014/09/26 ...
6 years, 2 months ago (2014-09-26 18:37:37 UTC) #27
Jun Mukai
considering about the initialization, I realized it's not yet ready to use thread checker correctly ...
6 years, 2 months ago (2014-09-26 19:43:27 UTC) #28
Bernhard Bauer
Still LGTM
6 years, 2 months ago (2014-09-27 11:29:20 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596613002/120001
6 years, 2 months ago (2014-09-28 22:11:31 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/13192)
6 years, 2 months ago (2014-09-28 23:00:48 UTC) #33
vabr (Chromium)
LGTM, thanks also for explaining the chosen way. I'm not completely clear on whether the ...
6 years, 2 months ago (2014-09-29 07:39:16 UTC) #34
Jun Mukai
On 2014/09/29 07:39:16, vabr (Chromium) wrote: > LGTM, thanks also for explaining the chosen way. ...
6 years, 2 months ago (2014-09-29 18:58:54 UTC) #35
blundell
On 2014/09/29 18:58:54, Jun Mukai wrote: > On 2014/09/29 07:39:16, vabr (Chromium) wrote: > > ...
6 years, 2 months ago (2014-09-29 19:03:32 UTC) #36
Jun Mukai
On 2014/09/29 19:03:32, blundell wrote: > On 2014/09/29 18:58:54, Jun Mukai wrote: > > On ...
6 years, 2 months ago (2014-09-29 19:58:49 UTC) #37
blundell
On 2014/09/29 19:58:49, Jun Mukai wrote: > On 2014/09/29 19:03:32, blundell wrote: > > On ...
6 years, 2 months ago (2014-09-29 20:00:45 UTC) #38
Jun Mukai
On 2014/09/29 20:00:45, blundell wrote: > On 2014/09/29 19:58:49, Jun Mukai wrote: > > On ...
6 years, 2 months ago (2014-09-29 20:29:34 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596613002/140001
6 years, 2 months ago (2014-09-29 20:32:53 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:140001) as eb0ec865eb01c0bd9450dd17b3f2366e24cd5d43
6 years, 2 months ago (2014-09-29 22:32:21 UTC) #42
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 22:33:38 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/55fab14d5efed15eec5d91b536a80607f58800d6
Cr-Commit-Position: refs/heads/master@{#297288}

Powered by Google App Engine
This is Rietveld 408576698