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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 2820163002: Move MediaDeviceIDSalt from ProfileIOData to ProfileImpl. (Closed)
Patch Set: merge Created 3 years, 8 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 | « chrome/browser/profiles/profile_io_data.h ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 7f5eb85a2251f9892b04342502a0810ad989d417..addedb5f6786ff9e0e2e03d1e90b3f7fdb7addd8 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -36,7 +36,6 @@
#include "chrome/browser/download/download_service.h"
#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/io_thread.h"
-#include "chrome/browser/media/media_device_id_salt.h"
#include "chrome/browser/net/chrome_http_user_agent_settings.h"
#include "chrome/browser/net/chrome_network_delegate.h"
#include "chrome/browser/net/chrome_url_request_context_getter.h"
@@ -480,9 +479,6 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
google_services_user_account_id_.MoveToThread(io_task_runner);
}
- if (!IsOffTheRecord())
- media_device_id_salt_ = new MediaDeviceIDSalt(pref_service);
-
network_prediction_options_.Init(prefs::kNetworkPredictionOptions,
pref_service);
@@ -857,11 +853,6 @@ HostContentSettingsMap* ProfileIOData::GetHostContentSettingsMap() const {
return host_content_settings_map_.get();
}
-std::string ProfileIOData::GetMediaDeviceIDSalt() const {
- DCHECK(media_device_id_salt_);
- return media_device_id_salt_->GetSalt();
-}
-
bool ProfileIOData::IsOffTheRecord() const {
return profile_type() == Profile::INCOGNITO_PROFILE
|| profile_type() == Profile::GUEST_PROFILE;
@@ -959,13 +950,6 @@ net::URLRequestContext* ProfileIOData::ResourceContext::GetRequestContext() {
return request_context_;
}
-std::string ProfileIOData::ResourceContext::GetMediaDeviceIDSalt() {
- if (io_data_->HasMediaDeviceIDSalt())
- return io_data_->GetMediaDeviceIDSalt();
-
- return content::ResourceContext::GetMediaDeviceIDSalt();
-}
-
void ProfileIOData::Init(
content::ProtocolHandlerMap* protocol_handlers,
content::URLRequestInterceptorScopedVector request_interceptors) const {
@@ -1226,8 +1210,6 @@ void ProfileIOData::ShutdownOnUIThread(
enable_metrics_.Destroy();
safe_browsing_enabled_.Destroy();
network_prediction_options_.Destroy();
- if (media_device_id_salt_.get())
- media_device_id_salt_->ShutdownOnUIThread();
if (url_blacklist_manager_)
url_blacklist_manager_->ShutdownOnUIThread();
if (ct_policy_manager_)
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698