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 232c2c85b4e65c5436d2d5a41f9478cc29a010f4..cf5225c31197101c307e359573548b4ea5a7c65b 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -51,6 +51,7 @@ |
#include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
#include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
#include "chrome/browser/net/chrome_net_log.h" |
+#include "chrome/browser/net/network_controller.h" |
#include "chrome/browser/notifications/desktop_notification_service.h" |
#include "chrome/browser/notifications/desktop_notification_service_factory.h" |
#include "chrome/browser/platform_util.h" |
@@ -2427,6 +2428,15 @@ void ChromeContentBrowserClient::ClearCookies(RenderViewHost* rvh) { |
// BrowsingDataRemover takes care of deleting itself when done. |
} |
+void ChromeContentBrowserClient::SetBlockedDomains( |
+ content::RenderViewHost* rvh, |
+ const std::string& id, |
+ const std::vector<std::string>& blocked_domains) { |
+ Profile* profile = Profile::FromBrowserContext( |
+ rvh->GetSiteInstance()->GetProcess()->GetBrowserContext()); |
+ NetworkController::SetBlockedDomains(profile, id, blocked_domains); |
+} |
+ |
base::FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() { |
return DownloadPrefs::GetDefaultDownloadDirectory(); |
} |