| Index: chrome/browser/ui/browser.cc
|
| ===================================================================
|
| --- chrome/browser/ui/browser.cc (revision 120814)
|
| +++ chrome/browser/ui/browser.cc (working copy)
|
| @@ -145,7 +145,6 @@
|
| #include "chrome/common/url_constants.h"
|
| #include "chrome/common/web_apps.h"
|
| #include "content/browser/browser_url_handler.h"
|
| -#include "content/browser/child_process_security_policy.h"
|
| #include "content/browser/renderer_host/render_view_host.h"
|
| #include "content/browser/tab_contents/interstitial_page.h"
|
| #include "content/public/browser/devtools_manager.h"
|
| @@ -2633,11 +2632,6 @@
|
| // static
|
| void Browser::EnumerateDirectoryHelper(WebContents* tab, int request_id,
|
| const FilePath& path) {
|
| - ChildProcessSecurityPolicy* policy =
|
| - ChildProcessSecurityPolicy::GetInstance();
|
| - if (!policy->CanReadDirectory(tab->GetRenderProcessHost()->GetID(), path))
|
| - return;
|
| -
|
| Profile* profile =
|
| Profile::FromBrowserContext(tab->GetBrowserContext());
|
| // FileSelectHelper adds a reference to itself and only releases it after
|
| @@ -2675,11 +2669,6 @@
|
| if (!tcw || tcw->profile()->IsOffTheRecord())
|
| return;
|
|
|
| - ChildProcessSecurityPolicy* policy =
|
| - ChildProcessSecurityPolicy::GetInstance();
|
| - if (policy->IsPseudoScheme(protocol) || policy->IsDisabledScheme(protocol))
|
| - return;
|
| -
|
| ProtocolHandler handler =
|
| ProtocolHandler::CreateProtocolHandler(protocol, url, title);
|
|
|
|
|