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

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

Issue 502483002: Check policy when checking device access for enumerating devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added dchecks Created 6 years, 4 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 eed446ea6c26e2d4d35af22c122920602d4e755f..9f1999eb81d0c743902ce656f18a1404803ad070 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -420,6 +420,8 @@ class ProfileIOData {
explicit ResourceContext(ProfileIOData* io_data);
virtual ~ResourceContext();
+ void set_profile(Profile* profile);
tommi (sloooow) - chröme 2014/08/22 19:42:56 I'm wary of making changes to ResourceContext and
Henrik Grunell 2014/08/25 08:21:46 Maybe asking for access based on policy via Render
+
// ResourceContext implementation:
virtual net::HostResolver* GetHostResolver() OVERRIDE;
virtual net::URLRequestContext* GetRequestContext() OVERRIDE;
@@ -442,6 +444,7 @@ class ProfileIOData {
bool AllowContentAccess(const GURL& origin, ContentSettingsType type);
ProfileIOData* const io_data_;
+ Profile* profile_;
tommi (sloooow) - chröme 2014/08/22 19:42:56 this would need a lot of documentation I think and
net::HostResolver* host_resolver_;
net::URLRequestContext* request_context_;

Powered by Google App Engine
This is Rietveld 408576698