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

Unified Diff: chrome/browser/search/iframe_source.cc

Issue 2393773002: Fix devtools unable to start a shared workers. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | chrome/browser/ui/webui/app_launcher_page_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/iframe_source.cc
diff --git a/chrome/browser/search/iframe_source.cc b/chrome/browser/search/iframe_source.cc
index 511cd48a0d7082294bb4a228f15f550d50607977..e9dd3b646de7f515f0182e6581d29348197fa362 100644
--- a/chrome/browser/search/iframe_source.cc
+++ b/chrome/browser/search/iframe_source.cc
@@ -52,7 +52,11 @@ bool IframeSource::ShouldDenyXFrameOptions() const {
bool IframeSource::GetOrigin(
const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
std::string* origin) const {
+ if (wc_getter.is_null())
+ return false;
content::WebContents* contents = wc_getter.Run();
+ if (!contents)
+ return false;
const content::NavigationEntry* entry =
contents->GetController().GetVisibleEntry();
if (entry == NULL)
« no previous file with comments | « no previous file | chrome/browser/ui/webui/app_launcher_page_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698