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

Unified Diff: content/public/browser/resource_context.h

Issue 1987643002: Make default media device ID salts random by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix for compile error 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
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/resource_context.h
diff --git a/content/public/browser/resource_context.h b/content/public/browser/resource_context.h
index 039ad94006ded4e49f25ad2a3784d3ed9d7e6b40..5d15160928ad529cdeaefd78e2e8f3d2c73ad072 100644
--- a/content/public/browser/resource_context.h
+++ b/content/public/browser/resource_context.h
@@ -72,11 +72,14 @@ class CONTENT_EXPORT ResourceContext : public base::SupportsUserData {
// was put in place to fix http://crbug.com/341211 but I intend to
// try to figure out how the lifetime should be fixed properly. The
// original interface was just a method that returns a string.
- //
- // TODO(perkj): Make this method pure virtual when crbug/315022 is
- // fixed.
typedef base::Callback<std::string()> SaltCallback;
virtual SaltCallback GetMediaDeviceIDSalt();
+
+ // Utility function useful for implementations
+ static std::string CreateRandomMediaDeviceIDSalt();
jochen (gone - plz use gerrit) 2016/06/03 12:50:25 as jam@ pointed out, you don't need to expose this
Guido Urdaneta 2016/06/03 13:09:44 The MediaDeviceIDSalt class uses that method to ge
+
+ private:
+ const std::string media_device_id_salt_;
};
} // namespace content
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698