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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.cc

Issue 6992081: Make --allow-cross-domain-auth-prompt equivalent to a preference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « chrome/test/testing_browser_process.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/resource_dispatcher_host.cc
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host.cc (revision 85807)
+++ content/browser/renderer_host/resource_dispatcher_host.cc (working copy)
@@ -18,6 +18,7 @@
#include "base/shared_memory.h"
#include "base/stl_util-inl.h"
#include "base/time.h"
+#include "chrome/browser/browser_process.h"
jam 2011/05/25 21:08:45 this is adding a dependency from content to chrome
#include "chrome/browser/download/download_file_manager.h"
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/download/download_request_limiter.h"
@@ -257,8 +258,7 @@
request->first_party_for_cookies(), request->url()))
return HTTP_AUTH_RESOURCE_SAME_DOMAIN;
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAllowCrossOriginAuthPrompt))
+ if (g_browser_process->allow_cross_origin_auth_prompt())
return HTTP_AUTH_RESOURCE_ALLOWED_CROSS;
return HTTP_AUTH_RESOURCE_BLOCKED_CROSS;
@@ -2071,3 +2071,4 @@
// static
bool ResourceDispatcherHost::is_prefetch_enabled_ = false;
+
« no previous file with comments | « chrome/test/testing_browser_process.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698