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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 141363006: Proof of concept of ignoring x-frame-options for sign-in webui. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix crash Created 6 years, 11 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
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 248093)
+++ chrome/browser/chrome_content_browser_client.cc (working copy)
@@ -736,8 +736,12 @@
// The partition ID for webview guest processes is the string value of its
// SiteInstance URL - "chrome-guest://app_id/persist?partition".
- if (site.SchemeIs(content::kGuestScheme))
+ if (site.SchemeIs(content::kGuestScheme)) {
partition_id = site.spec();
+ } else if (site.SchemeIs(chrome::kChromeUIScheme) &&
+ site.host() == chrome::kChromeSigninHost) {
+ partition_id = site.spec();
+ }
DCHECK(IsValidStoragePartitionId(browser_context, partition_id));
return partition_id;
@@ -801,6 +805,9 @@
*in_memory = false;
partition_name->clear();
}
+ } else if (site.SchemeIs(chrome::kChromeUIScheme) &&
+ site.host() == chrome::kChromeSigninHost) {
+ *partition_domain = chrome::kChromeSigninHost;
}
// Assert that if |can_be_default| is false, the code above must have found a
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698