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

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: change return type from const string to string as it makes no difference 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 | « chrome/browser/media/media_device_id_salt.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5f7078d8cc21fec039335ee0168f6e5a7fb5a014 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;
+ }
+
+ 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;
+ std::string GetMediaDeviceIDSalt() override;
private:
friend class ProfileIOData;
« no previous file with comments | « chrome/browser/media/media_device_id_salt.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698