diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-04 16:20:37 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-03-23 00:24:51 +0000 |
commit | 5c6201f6c393967e9284bb9841281d286126541d (patch) | |
tree | 24339c13b833cae3d8f6f0115bade06df342b9fc /src/core/profile_io_data_qt.cpp | |
parent | f3f3279bec367bf3816377ac31a75c042648068f (diff) |
Adaptations for Chromium 72
Change-Id: Ic355257066c7c1433862cb41e6f2bfa831147e0d
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/profile_io_data_qt.cpp')
-rw-r--r-- | src/core/profile_io_data_qt.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/profile_io_data_qt.cpp b/src/core/profile_io_data_qt.cpp index a73a7c21d..638f949df 100644 --- a/src/core/profile_io_data_qt.cpp +++ b/src/core/profile_io_data_qt.cpp @@ -163,7 +163,6 @@ static net::HttpNetworkSession::Params generateNetworkSessionParams(bool ignoreC { net::HttpNetworkSession::Params network_session_params; network_session_params.ignore_certificate_errors = ignoreCertificateErrors; - network_session_params.enable_channel_id = base::FeatureList::IsEnabled(features::kChannelID); return network_session_params; } @@ -666,10 +665,10 @@ void ProfileIODataQt::updateStorageSettings() QMutexLocker lock(&m_mutex); setFullConfiguration(); - std::string userId = content::BrowserContext::GetServiceUserIdFor(m_profile); - if (file::GetUserDirForUserId(userId) != toFilePath(m_profileAdapter->dataPath())) { - file::ForgetServiceUserIdUserDirAssociation(userId); - file::AssociateServiceUserIdWithUserDir(userId, toFilePath(m_profileAdapter->dataPath())); + base::Token groupId = content::BrowserContext::GetServiceInstanceGroupFor(m_profile); + if (file::GetUserDirForInstanceGroup(groupId) != toFilePath(m_profileAdapter->dataPath())) { + file::ForgetServiceInstanceGroupUserDirAssociation(groupId); + file::AssociateServiceInstanceGroupWithUserDir(groupId, toFilePath(m_profileAdapter->dataPath())); } requestStorageGeneration(); } |