Commit 5c45af44 authored by Alex Kalugin's avatar Alex Kalugin Committed by Commit Bot

Fix static analyzer findings.

Fix possible calls on null pointer.

Change-Id: I5899e0debfba13afc330a88d6d2eaec29275fa77
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1533907
Commit-Queue: Alexander Kalugin <akalugin@yandex-team.ru>
Reviewed-by: default avatarVarun Khaneja <vakh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649766}
parent b1505eb2
...@@ -247,8 +247,10 @@ void PasswordProtectionRequest::CollectVisualFeatures() { ...@@ -247,8 +247,10 @@ void PasswordProtectionRequest::CollectVisualFeatures() {
content::RenderWidgetHostView* view = content::RenderWidgetHostView* view =
web_contents_ ? web_contents_->GetRenderWidgetHostView() : nullptr; web_contents_ ? web_contents_->GetRenderWidgetHostView() : nullptr;
if (!view) if (!view) {
SendRequest(); SendRequest();
return;
}
visual_feature_start_time_ = base::TimeTicks::Now(); visual_feature_start_time_ = base::TimeTicks::Now();
......
...@@ -1180,6 +1180,7 @@ void SafeBrowsingUIHandler::GetReferrerChain(const base::ListValue* args) { ...@@ -1180,6 +1180,7 @@ void SafeBrowsingUIHandler::GetReferrerChain(const base::ListValue* args) {
if (!provider) { if (!provider) {
AllowJavascript(); AllowJavascript();
ResolveJavascriptCallback(base::Value(callback_id), base::Value("")); ResolveJavascriptCallback(base::Value(callback_id), base::Value(""));
return;
} }
ReferrerChain referrer_chain; ReferrerChain referrer_chain;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment