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

Issue 1320533007: Componentize ssl_config_service_manager_pref.cc (Closed)

Created:
5 years, 3 months ago by Abhishek
Modified:
5 years, 1 month ago
CC:
blundell+watchlist_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, davemoore+watch_chromium.org, droger+watchlist_chromium.org, oshima+watch_chromium.org, sdefresne+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize ssl_config_service_manager_pref.cc . Removed not needed notifications. . Created new switches and prefs for ssl_config. . Using SingleThreadTaskRunner over BrowserThread to remove content dependencies. BUG=517014 TBR=jochen Committed: https://crrev.com/2849ceeb85e97574807c6f8b45f44a854fc81e5e Cr-Commit-Position: refs/heads/master@{#355038}

Patch Set 1 #

Total comments: 6

Patch Set 2 : added ssl_config namespace for ssl_config_service_manager #

Patch Set 3 : removed dependency #

Total comments: 6

Patch Set 4 : added OWNERS and updated gypi type #

Total comments: 18

Patch Set 5 : removed pref_service_mock_factory.h dependency from unittest #

Total comments: 5

Patch Set 6 : rebase and break unittest #

Patch Set 7 : move unittest to components/ssl_config #

Total comments: 4

Patch Set 8 : updated #

Patch Set 9 : adding ssl_config - unittest for gn build #

Patch Set 10 : rebase #

Patch Set 11 : resolve rebase issue #

Patch Set 12 : Resolve -Wnewline-eof mac_chromium bot failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -788 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/mobile/mobile_activator.cc View 1 2 3 4 5 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
D chrome/browser/net/ssl_config_service_manager.h View 1 chunk +0 lines, -35 lines 0 comments Download
D chrome/browser/net/ssl_config_service_manager_pref.cc View 1 2 3 4 5 1 chunk +0 lines, -296 lines 0 comments Download
M chrome/browser/net/ssl_config_service_manager_pref_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -240 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/command_line_pref_store.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -4 lines 0 comments Download
A chrome/browser/prefs/command_line_pref_store_ssl_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/browser/prefs/command_line_pref_store_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
A components/ssl_config.gypi View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A components/ssl_config/BUILD.gn View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
A components/ssl_config/DEPS View 7 1 chunk +7 lines, -0 lines 0 comments Download
A + components/ssl_config/OWNERS View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A components/ssl_config/ssl_config_prefs.h View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A components/ssl_config/ssl_config_prefs.cc View 1 chunk +21 lines, -0 lines 0 comments Download
A + components/ssl_config/ssl_config_service_manager.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +14 lines, -4 lines 0 comments Download
A + components/ssl_config/ssl_config_service_manager_pref.cc View 1 2 3 4 5 12 chunks +65 lines, -55 lines 0 comments Download
A + components/ssl_config/ssl_config_service_manager_pref_unittest.cc View 1 2 3 4 5 6 7 9 chunks +29 lines, -94 lines 0 comments Download
A components/ssl_config/ssl_config_switches.h View 1 chunk +19 lines, -0 lines 0 comments Download
A components/ssl_config/ssl_config_switches.cc View 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (12 generated)
Abhishek
PTAL!
5 years, 3 months ago (2015-09-04 13:46:29 UTC) #2
droger
Looks good! Only minor comments. https://codereview.chromium.org/1320533007/diff/1/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1320533007/diff/1/chrome/browser/BUILD.gn#newcode154 chrome/browser/BUILD.gn:154: "//components/ssl_config", This is not ...
5 years, 3 months ago (2015-09-04 13:54:35 UTC) #3
Abhishek
I've updated the patch. PTAL #2! https://codereview.chromium.org/1320533007/diff/1/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1320533007/diff/1/chrome/browser/BUILD.gn#newcode154 chrome/browser/BUILD.gn:154: "//components/ssl_config", On 2015/09/04 ...
5 years, 3 months ago (2015-09-07 09:18:09 UTC) #4
droger
LGTM. Thanks. +rsleevi as OWNER for chrome/browser/net +sdefresne for components We should add a OWNER ...
5 years, 3 months ago (2015-09-07 09:53:32 UTC) #6
sdefresne
components lgtm
5 years, 3 months ago (2015-09-07 10:08:36 UTC) #8
droger
https://codereview.chromium.org/1320533007/diff/40001/components/ssl_config.gypi File components/ssl_config.gypi (right): https://codereview.chromium.org/1320533007/diff/40001/components/ssl_config.gypi#newcode10 components/ssl_config.gypi:10: 'type': '<(component)', Change this to: 'type': 'static_library', https://codereview.chromium.org/1320533007/diff/40001/components/ssl_config/BUILD.gn File ...
5 years, 3 months ago (2015-09-07 13:06:37 UTC) #9
Abhishek
Thanks for updating me about its type! I've updated it. PTAL# 4! https://codereview.chromium.org/1320533007/diff/40001/components/ssl_config.gypi File components/ssl_config.gypi ...
5 years, 3 months ago (2015-09-07 13:16:21 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320533007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320533007/60001
5 years, 3 months ago (2015-09-07 14:04:57 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/97127)
5 years, 3 months ago (2015-09-07 14:12:56 UTC) #14
Ryan Sleevi
https://codereview.chromium.org/1320533007/diff/60001/chrome/browser/net/ssl_config_service_manager_pref_unittest.cc File chrome/browser/net/ssl_config_service_manager_pref_unittest.cc (right): https://codereview.chromium.org/1320533007/diff/60001/chrome/browser/net/ssl_config_service_manager_pref_unittest.cc#newcode3 chrome/browser/net/ssl_config_service_manager_pref_unittest.cc:3: // found in the LICENSE file. Why is this ...
5 years, 3 months ago (2015-09-08 21:02:16 UTC) #15
Abhishek
I've updated the patch as suggested. Removed "c/b/p/pref_service_mock_factory.h" dependency from unittest. But Its failing in ...
5 years, 3 months ago (2015-09-10 13:32:54 UTC) #16
droger
https://codereview.chromium.org/1320533007/diff/80001/chrome/browser/net/ssl_config_service_manager_pref_unittest.cc File chrome/browser/net/ssl_config_service_manager_pref_unittest.cc (right): https://codereview.chromium.org/1320533007/diff/80001/chrome/browser/net/ssl_config_service_manager_pref_unittest.cc#newcode191 chrome/browser/net/ssl_config_service_manager_pref_unittest.cc:191: EXPECT_FALSE(version_min_pref->IsUserModifiable()); On 2015/09/10 13:32:54, Abhishek wrote: > Currently this ...
5 years, 3 months ago (2015-09-10 14:49:38 UTC) #17
Abhishek
@rsleevi: ping
5 years, 3 months ago (2015-09-15 06:10:51 UTC) #18
blundell
On 2015/09/15 06:10:51, Abhishek wrote: > @rsleevi: ping Can you describe what the current status ...
5 years, 3 months ago (2015-09-15 08:30:05 UTC) #19
droger
On 2015/09/15 08:30:05, blundell wrote: > On 2015/09/15 06:10:51, Abhishek wrote: > > @rsleevi: ping ...
5 years, 3 months ago (2015-09-15 08:48:49 UTC) #20
Abhishek
On 2015/09/15 08:48:49, droger wrote: > On 2015/09/15 08:30:05, blundell wrote: > > On 2015/09/15 ...
5 years, 3 months ago (2015-09-15 09:07:34 UTC) #21
droger
rsleevi: ping
5 years, 3 months ago (2015-09-24 09:44:32 UTC) #22
Ryan Sleevi
Thanks for the ping. I'm still not sure componentization is the right thing long-term, but ...
5 years, 3 months ago (2015-09-24 20:59:56 UTC) #23
Abhishek
I'll upload a new patch soon. https://codereview.chromium.org/1320533007/diff/80001/chrome/browser/net/ssl_config_service_manager_pref_unittest.cc File chrome/browser/net/ssl_config_service_manager_pref_unittest.cc (right): https://codereview.chromium.org/1320533007/diff/80001/chrome/browser/net/ssl_config_service_manager_pref_unittest.cc#newcode191 chrome/browser/net/ssl_config_service_manager_pref_unittest.cc:191: EXPECT_FALSE(version_min_pref->IsUserModifiable()); On 2015/09/24 ...
5 years, 2 months ago (2015-09-28 05:30:33 UTC) #24
Abhishek
@rsleevi: I've broken the unittest for CommandLinePref. Now all the unittest are passing. Please take ...
5 years, 2 months ago (2015-10-08 13:16:57 UTC) #25
droger
Looks great. Could you move ssl_config_service_manager_pref_unittest.cc to components/ssl_config?
5 years, 2 months ago (2015-10-08 13:20:04 UTC) #26
Abhishek
On 2015/10/08 13:20:04, droger wrote: > Looks great. > Could you move ssl_config_service_manager_pref_unittest.cc to > ...
5 years, 2 months ago (2015-10-08 16:03:11 UTC) #27
Abhishek
PTAL# 7. I've moved unittest to components/ssl_config.
5 years, 2 months ago (2015-10-09 05:48:30 UTC) #28
droger
Thanks. LGTM with the comments below addressed. https://codereview.chromium.org/1320533007/diff/120001/components/ssl_config/DEPS File components/ssl_config/DEPS (right): https://codereview.chromium.org/1320533007/diff/120001/components/ssl_config/DEPS#newcode4 components/ssl_config/DEPS:4: "+components/syncable_prefs", syncable_prefs ...
5 years, 2 months ago (2015-10-09 12:59:47 UTC) #29
Abhishek
@droger, rsleevi: PTAL# 9 https://codereview.chromium.org/1320533007/diff/120001/components/ssl_config/DEPS File components/ssl_config/DEPS (right): https://codereview.chromium.org/1320533007/diff/120001/components/ssl_config/DEPS#newcode4 components/ssl_config/DEPS:4: "+components/syncable_prefs", On 2015/10/09 12:59:47, droger ...
5 years, 2 months ago (2015-10-12 08:40:14 UTC) #30
droger
Thanks. +battre as OWNER for command_line_pref_store_ssl_manager_unittest.cc. This is a test moved out of the ssl_manager_unittest. ...
5 years, 2 months ago (2015-10-12 08:44:44 UTC) #32
battre
I don't think that this belongs to //chrome/browser/prefs. IMO, the core part being tested there ...
5 years, 2 months ago (2015-10-12 08:53:28 UTC) #33
droger
On 2015/10/12 08:53:28, battre wrote: > I don't think that this belongs to //chrome/browser/prefs. > ...
5 years, 2 months ago (2015-10-12 13:27:27 UTC) #34
battre
On 2015/10/12 13:27:27, droger wrote: > On 2015/10/12 08:53:28, battre wrote: > > I don't ...
5 years, 2 months ago (2015-10-12 15:29:55 UTC) #35
droger
rsleevi: ping
5 years, 2 months ago (2015-10-12 16:24:42 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320533007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320533007/160001
5 years, 2 months ago (2015-10-12 16:25:20 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/108852) mac_chromium_gn_rel on ...
5 years, 2 months ago (2015-10-12 16:27:41 UTC) #40
Abhishek
@rsleevi: PTAL patchset# 10!
5 years, 2 months ago (2015-10-13 14:59:06 UTC) #41
Abhishek
@rsleevi: ping
5 years, 2 months ago (2015-10-19 18:11:14 UTC) #42
Ryan Sleevi
lgtm
5 years, 2 months ago (2015-10-19 18:32:10 UTC) #43
Abhishek
TBR'ing jochen for the remaining changes. Now /c/b/policy, /c/b/profiles and /c/b/chromeos/mobile/ contains namespace changes.
5 years, 2 months ago (2015-10-20 10:23:50 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320533007/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320533007/220001
5 years, 2 months ago (2015-10-20 10:25:18 UTC) #49
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 2 months ago (2015-10-20 11:27:37 UTC) #50
commit-bot: I haz the power
5 years, 2 months ago (2015-10-20 11:28:37 UTC) #51
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/2849ceeb85e97574807c6f8b45f44a854fc81e5e
Cr-Commit-Position: refs/heads/master@{#355038}

Powered by Google App Engine
This is Rietveld 408576698