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

Unified Diff: chrome/browser/media/media_device_id_salt.h

Issue 2065383003: Revert of 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, 6 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: chrome/browser/media/media_device_id_salt.h
diff --git a/chrome/browser/media/media_device_id_salt.h b/chrome/browser/media/media_device_id_salt.h
index 8db27317d876f871a2278506487d842ae37f02f9..5e1ec8fde31fe3150deceb44b95acb5d53480668 100644
--- a/chrome/browser/media/media_device_id_salt.h
+++ b/chrome/browser/media/media_device_id_salt.h
@@ -22,7 +22,7 @@
// callback returned by ResourceContext::GetMediaDeviceIDSalt.
class MediaDeviceIDSalt : public base::RefCountedThreadSafe<MediaDeviceIDSalt> {
public:
- explicit MediaDeviceIDSalt(PrefService* pref_service);
+ MediaDeviceIDSalt(PrefService* pref_service, bool incognito);
void ShutdownOnUIThread();
std::string GetSalt() const;
@@ -34,6 +34,9 @@
friend class base::RefCountedThreadSafe<MediaDeviceIDSalt>;
~MediaDeviceIDSalt();
+ // |incognito_salt_| is initialized in ctor on UI thread but only read
+ // on the IO thread.
+ std::string incognito_salt_;
mutable StringPrefMember media_device_id_salt_;
DISALLOW_COPY_AND_ASSIGN(MediaDeviceIDSalt);

Powered by Google App Engine
This is Rietveld 408576698