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

Unified Diff: extensions/browser/url_request_util.cc

Issue 2831183003: Fix loading success.html at the end of chrome://chrome-signin flow (Closed)
Patch Set: Created 3 years, 8 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/browser/resources/gaia_auth/manifest.json ('k') | extensions/common/manifest_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/url_request_util.cc
diff --git a/extensions/browser/url_request_util.cc b/extensions/browser/url_request_util.cc
index 20e32c61b77d19208bb7ce156c7bc4a895d2415c..a51a42720cf478d613abc4c5dbb161814bf8ffe5 100644
--- a/extensions/browser/url_request_util.cc
+++ b/extensions/browser/url_request_util.cc
@@ -156,12 +156,22 @@ bool AllowCrossRendererResourceLoadHelper(bool is_guest,
// An extension's resources should only be accessible to WebViews owned by
// that extension.
if (owner_extension != extension) {
- *allowed = false;
- return true;
+ bool is_signin_extension =
+ extension && extension->id() == "mfffpogegjflfpflabcdkioaeobkgjik";
+ if (!is_signin_extension) {
+ LOG(ERROR) << "NOT Allowed ";
+ *allowed = false;
+ return true;
+ } else {
+ LOG(ERROR)
+ << "Sign-in extension is allowed to load cross renderrer resouces";
+ }
}
*allowed = WebviewInfo::IsResourceWebviewAccessible(extension, partition_id,
resource_path);
+ LOG(ERROR) << "Allowed? " << extension->id() << " to load " << resource_path
+ << ":" << *allowed;
return true;
}
« no previous file with comments | « chrome/browser/resources/gaia_auth/manifest.json ('k') | extensions/common/manifest_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698