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

Unified Diff: chrome/browser/profiles/profile_io_data.h

Issue 143003031: Allow retrieval of media device ID salt even after ResourceContext has gone away. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO about proper fix. Created 6 years, 10 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.h ('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 a4bf0982b3b6903a10152a027bc0de00b3d00dc4..467513c2de5c92b09c1eddddb2cb688e9ceb71e9 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -175,7 +175,7 @@ class ProfileIOData {
return &network_prediction_enabled_;
}
- std::string GetMediaDeviceIDSalt() const;
+ content::ResourceContext::SaltCallback GetMediaDeviceIDSalt() const;
net::TransportSecurityState* transport_security_state() const {
return transport_security_state_.get();
@@ -374,7 +374,7 @@ class ProfileIOData {
OVERRIDE;
virtual bool AllowMicAccess(const GURL& origin) OVERRIDE;
virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE;
- virtual std::string GetMediaDeviceIDSalt() OVERRIDE;
+ virtual SaltCallback GetMediaDeviceIDSalt() OVERRIDE;
private:
friend class ProfileIOData;
@@ -476,7 +476,7 @@ class ProfileIOData {
mutable StringListPrefMember one_click_signin_rejected_email_list_;
- mutable scoped_ptr<MediaDeviceIDSalt> media_device_id_salt_;
+ mutable scoped_refptr<MediaDeviceIDSalt> media_device_id_salt_;
// Member variables which are pointed to by the various context objects.
mutable BooleanPrefMember enable_referrers_;
« no previous file with comments | « chrome/browser/media/media_device_id_salt.h ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698