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

Issue 1634653003: Abstract pref storage from net::SdchOwner (Closed)

Created:
4 years, 11 months ago by brettw
Modified:
4 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, mef
Base URL:
https://chromium.googlesource.com/chromium/src.git@net_prefs
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Abstract pref storage from net::SdchOwner This is in preparation for moving prefs out of base, so it can no longer be used directly by net. This abstract interface gives allows enough of the storage system to be implemented for SdchOwner's needs by the embedder. Implementations in terms of the prefs system are provided for Chrome and Cronet. The SDCH unit tests changed the most. Since the new API takes ownership of the storage object, the tests have to do some management of the storage objects while the old tests just kept the current one in memory. Committed: https://crrev.com/66fdcb70dd8379e558e004da476c3088480aac3d Cr-Commit-Position: refs/heads/master@{#372261}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : Review comments #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : typo #

Patch Set 8 : Fix iOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+808 lines, -198 lines) Patch
A chrome/browser/net/sdch_owner_pref_storage.h View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/net/sdch_owner_pref_storage.cc View 1 2 3 4 5 6 1 chunk +111 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 4 5 6 2 chunks +103 lines, -2 lines 0 comments Download
M ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.cc View 1 2 3 4 5 6 2 chunks +105 lines, -1 line 0 comments Download
M ios/crnet/crnet.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ios/crnet/crnet_environment.mm View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
A ios/crnet/sdch_owner_pref_storage.h View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
A ios/crnet/sdch_owner_pref_storage.cc View 1 2 3 4 5 6 1 chunk +107 lines, -0 lines 0 comments Download
M net/http/http_auth_preferences_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M net/sdch/sdch_owner.h View 1 2 3 4 5 5 chunks +75 lines, -27 lines 0 comments Download
M net/sdch/sdch_owner.cc View 1 16 chunks +76 lines, -100 lines 0 comments Download
M net/sdch/sdch_owner_unittest.cc View 1 20 chunks +122 lines, -62 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 54 (27 generated)
brettw
Raman: net mef: cronet This is the second part of https://codereview.chromium.org/1626673002/ With this patch, there ...
4 years, 11 months ago (2016-01-26 21:24:07 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634653003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634653003/40001
4 years, 11 months ago (2016-01-26 21:25:17 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/122082) ios_rel_device_ninja on ...
4 years, 11 months ago (2016-01-26 21:35:16 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634653003/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634653003/50001
4 years, 11 months ago (2016-01-26 23:18:20 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/122173) ios_rel_device_ninja on ...
4 years, 11 months ago (2016-01-26 23:37:11 UTC) #11
brettw
mef: I need an adapter for ios/crnet also. I assume this is like cronet for ...
4 years, 11 months ago (2016-01-27 00:02:23 UTC) #13
ramant (doing other things)
lgtm +rdsmith (owner of sdch).
4 years, 11 months ago (2016-01-27 00:12:34 UTC) #14
mef
On 2016/01/27 00:02:23, brettw wrote: > mef: I need an adapter for ios/crnet also. I ...
4 years, 11 months ago (2016-01-27 15:25:56 UTC) #15
mef
+ellyjones to comment on ios/crnet sharing with ios/chrome.
4 years, 11 months ago (2016-01-27 15:26:58 UTC) #17
mef
Assigning xunjieli for cronet/ review as she did the integration with sdch and pref storage.
4 years, 11 months ago (2016-01-27 16:21:34 UTC) #19
Randy Smith (Not in Mondays)
Thanks for doing this! I think this looks basically good, but I'd like to do ...
4 years, 11 months ago (2016-01-27 21:48:17 UTC) #20
brettw
+asvitkine TBR for histograms.xml I added an adapter for iOS. It looks like the only ...
4 years, 11 months ago (2016-01-27 22:23:54 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634653003/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634653003/70001
4 years, 11 months ago (2016-01-27 22:25:01 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/122790)
4 years, 11 months ago (2016-01-27 22:37:11 UTC) #27
Alexei Svitkine (slow)
histograms lgtm
4 years, 11 months ago (2016-01-27 22:39:43 UTC) #29
xunjieli
components/cronet/android/cronet_url_request_context_adapter.cc lgtm. https://codereview.chromium.org/1634653003/diff/70001/ios/crnet/sdch_owner_pref_storage.h File ios/crnet/sdch_owner_pref_storage.h (right): https://codereview.chromium.org/1634653003/diff/70001/ios/crnet/sdch_owner_pref_storage.h#newcode14 ios/crnet/sdch_owner_pref_storage.h:14: // Provides and implementation of SdchOwner::PrefStorage that ...
4 years, 11 months ago (2016-01-27 22:57:39 UTC) #30
brettw
https://codereview.chromium.org/1634653003/diff/70001/ios/crnet/sdch_owner_pref_storage.h File ios/crnet/sdch_owner_pref_storage.h (right): https://codereview.chromium.org/1634653003/diff/70001/ios/crnet/sdch_owner_pref_storage.h#newcode14 ios/crnet/sdch_owner_pref_storage.h:14: // Provides and implementation of SdchOwner::PrefStorage that maps to ...
4 years, 11 months ago (2016-01-27 23:20:39 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634653003/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634653003/90001
4 years, 11 months ago (2016-01-27 23:21:58 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/122829) ios_rel_device_ninja on ...
4 years, 11 months ago (2016-01-27 23:36:40 UTC) #36
Randy Smith (Not in Mondays)
LGTM. https://codereview.chromium.org/1634653003/diff/50001/chrome/browser/net/sdch_owner_pref_storage.cc File chrome/browser/net/sdch_owner_pref_storage.cc (right): https://codereview.chromium.org/1634653003/diff/50001/chrome/browser/net/sdch_owner_pref_storage.cc#newcode105 chrome/browser/net/sdch_owner_pref_storage.cc:105: init_observer_->OnPrefStorageInitializationComplete(succeeded); On 2016/01/27 22:23:54, brettw wrote: > On ...
4 years, 10 months ago (2016-01-28 17:45:56 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634653003/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634653003/110001
4 years, 10 months ago (2016-01-28 23:35:03 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/165031)
4 years, 10 months ago (2016-01-28 23:44:06 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634653003/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634653003/130001
4 years, 10 months ago (2016-01-29 00:00:48 UTC) #45
commit-bot: I haz the power
Failed to commit the patch.
4 years, 10 months ago (2016-01-29 01:24:07 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634653003/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634653003/130001
4 years, 10 months ago (2016-01-29 02:34:33 UTC) #50
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 10 months ago (2016-01-29 02:40:27 UTC) #52
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 02:41:30 UTC) #54
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/66fdcb70dd8379e558e004da476c3088480aac3d
Cr-Commit-Position: refs/heads/master@{#372261}

Powered by Google App Engine
This is Rietveld 408576698