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

Unified Diff: content/browser/resource_context_impl.cc

Issue 143003031: Allow retrieval of media device ID salt even after ResourceContext has gone away. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO about proper fix. Created 6 years, 10 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
Index: content/browser/resource_context_impl.cc
diff --git a/content/browser/resource_context_impl.cc b/content/browser/resource_context_impl.cc
index 9561c8d8ebf8ac32dda2ed3544d066d56cbdc09e..14115a4887c77b6d081bba0fec8eb789a9480da0 100644
--- a/content/browser/resource_context_impl.cc
+++ b/content/browser/resource_context_impl.cc
@@ -37,6 +37,11 @@ class NonOwningZoomData : public base::SupportsUserData::Data {
HostZoomMap* host_zoom_map_;
};
+// Used by the default implementation of GetMediaDeviceIDSalt, below.
+std::string ReturnEmptySalt() {
+ return std::string();
+}
+
} // namespace
@@ -56,8 +61,8 @@ ResourceContext::~ResourceContext() {
DetachUserDataThread();
}
-std::string ResourceContext::GetMediaDeviceIDSalt() {
- return std::string();
+ResourceContext::SaltCallback ResourceContext::GetMediaDeviceIDSalt() {
+ return base::Bind(&ReturnEmptySalt);
}
scoped_ptr<net::ClientCertStore> ResourceContext::CreateClientCertStore() {
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host_unittest.cc ('k') | content/public/browser/media_device_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698