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

Unified Diff: content/shell/browser/shell_browser_context.cc

Issue 1987643002: Make default media device ID salts random by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/shell/browser/shell_browser_context.cc
diff --git a/content/shell/browser/shell_browser_context.cc b/content/shell/browser/shell_browser_context.cc
index aad4a0eb338910407c752efeada2a597c66550a3..51d3f201be608d22ef98cb3ef297a552fc000b7e 100644
--- a/content/shell/browser/shell_browser_context.cc
+++ b/content/shell/browser/shell_browser_context.cc
@@ -33,8 +33,7 @@
namespace content {
ShellBrowserContext::ShellResourceContext::ShellResourceContext()
- : getter_(NULL) {
-}
+ : getter_(NULL), media_device_id_salt_(CreateRandomMediaDeviceIDSalt()) {}
ShellBrowserContext::ShellResourceContext::~ShellResourceContext() {
}
@@ -51,6 +50,11 @@ ShellBrowserContext::ShellResourceContext::GetRequestContext() {
return getter_->GetURLRequestContext();
}
+ResourceContext::SaltCallback
+ShellBrowserContext::ShellResourceContext::GetMediaDeviceIDSalt() {
+ return CreateSaltCallback(media_device_id_salt_);
+}
+
ShellBrowserContext::ShellBrowserContext(bool off_the_record,
net::NetLog* net_log)
: resource_context_(new ShellResourceContext),
« blimp/engine/common/blimp_browser_context.cc ('K') | « content/shell/browser/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698