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

Unified Diff: content/shell/browser/shell_browser_context.cc

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 years, 9 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/shell/browser/shell_browser_context.h ('k') | content/shell/browser/shell_content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_browser_context.cc
diff --git a/content/shell/browser/shell_browser_context.cc b/content/shell/browser/shell_browser_context.cc
index d8b895e8bb85481398ca41772c864d1dee223c87..b81ae1c6b1537ff35c794338679faa5ac6e81f05 100644
--- a/content/shell/browser/shell_browser_context.cc
+++ b/content/shell/browser/shell_browser_context.cc
@@ -15,6 +15,7 @@
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_switches.h"
#include "content/shell/browser/shell_download_manager_delegate.h"
+#include "content/shell/browser/shell_permission_manager.h"
#include "content/shell/common/shell_switches.h"
#if defined(OS_WIN)
@@ -199,4 +200,10 @@ SSLHostStateDelegate* ShellBrowserContext::GetSSLHostStateDelegate() {
return NULL;
}
+PermissionManager* ShellBrowserContext::GetPermissionManager() {
+ if (!permission_manager_.get())
+ permission_manager_.reset(new ShellPermissionManager());
+ return permission_manager_.get();
+}
+
} // namespace content
« no previous file with comments | « content/shell/browser/shell_browser_context.h ('k') | content/shell/browser/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698