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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1988613005: ppapi: PPB_VpnProvider: Implement Service Helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vpn-permission
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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 39338e63a28e126b5b6a5e38e6c51525cde002eb..5cc67e3dc91a17306d079ab132a81681685aa0fd 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -152,6 +152,7 @@
#include "content/public/browser/resource_context.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/storage_partition.h"
+#include "content/public/browser/vpn_service_proxy.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/child_process_host.h"
#include "content/public/common/content_descriptors.h"
@@ -2500,6 +2501,17 @@ bool ChromeContentBrowserClient::IsPepperVpnProviderAPIAllowed(
#endif
}
+std::unique_ptr<content::VpnServiceProxy>
+ChromeContentBrowserClient::GetVpnServiceProxy(
+ content::BrowserContext* browser_context) {
+#if defined(ENABLE_EXTENSIONS)
+ return ChromeContentBrowserClientExtensionsPart::GetVpnServiceProxy(
+ browser_context);
+#else
+ return nullptr;
+#endif
+}
+
ui::SelectFilePolicy* ChromeContentBrowserClient::CreateSelectFilePolicy(
WebContents* web_contents) {
return new ChromeSelectFilePolicy(web_contents);

Powered by Google App Engine
This is Rietveld 408576698