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

Unified Diff: ios/crnet/crnet_environment.mm

Issue 1634653003: Abstract pref storage from net::SdchOwner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_prefs
Patch Set: Fix iOS Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/crnet/crnet.gyp ('k') | ios/crnet/sdch_owner_pref_storage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/crnet_environment.mm
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
index 36144bdaa5ece01fe74378db738c0303f97a8223..e460fc69dace79bb6fc0393c4aa46b56858fc6bd 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -26,6 +26,7 @@
#include "base/threading/worker_pool.h"
#import "components/webp_transcode/webp_network_client_factory.h"
#include "crypto/nss_util.h"
+#include "ios/crnet/sdch_owner_pref_storage.h"
#include "ios/net/cookies/cookie_store_ios.h"
#include "ios/net/crn_http_protocol_handler.h"
#include "ios/net/empty_nsurlcache.h"
@@ -347,7 +348,9 @@ void CrNetEnvironment::ConfigureSdchOnNetworkThread() {
pref_store_worker_pool_.get(),
scoped_ptr<PrefFilter>());
net_pref_store_->ReadPrefsAsync(nullptr);
- sdch_owner_->EnablePersistentStorage(net_pref_store_.get());
+ sdch_owner_->EnablePersistentStorage(
+ scoped_ptr<net::SdchOwner::PrefStorage>(
+ new SdchOwnerPrefStorage(net_pref_store_.get())));
}
context->set_sdch_manager(sdch_manager_.get());
}
« no previous file with comments | « ios/crnet/crnet.gyp ('k') | ios/crnet/sdch_owner_pref_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698