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

Unified Diff: chrome/browser/profiles/profile_io_data.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: rebase 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/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index e8afc1df863fbeb035158d5082bb39e45a1457a6..b854198f104eda6197dbb9fbf68d902f08f5792f 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -29,7 +29,6 @@
#include "components/prefs/pref_member.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/resource_context.h"
-#include "net/cert/ct_verifier.h"
#include "net/cookies/cookie_monster.h"
#include "net/http/http_cache.h"
#include "net/http/http_network_session.h"
@@ -185,7 +184,11 @@ class ProfileIOData {
return &network_prediction_options_;
}
- content::ResourceContext::SaltCallback GetMediaDeviceIDSalt() const;
+ bool HasMediaDeviceIDSalt() const {
+ return media_device_id_salt_.get() != nullptr;
+ }
+
+ const std::string GetMediaDeviceIDSalt() const;
DevToolsNetworkControllerHandle* network_controller_handle() const {
return &network_controller_handle_;
@@ -436,7 +439,7 @@ class ProfileIOData {
const GURL& url,
const base::Callback<void(std::unique_ptr<net::KeygenHandler>)>&
callback) override;
- SaltCallback GetMediaDeviceIDSalt() override;
+ const std::string GetMediaDeviceIDSalt() override;
private:
friend class ProfileIOData;

Powered by Google App Engine
This is Rietveld 408576698