summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-26 01:01:34 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-26 01:01:34 +0000
commit352802eea5f5bfe19cc48e8d339fda25a30415d2 (patch)
treedb68d0893ef9de25260f001033651c8b380a0314
parent584c8cff33b4afcc5dda866b02f6ee533f8424bb (diff)
downloadchromium_src-352802eea5f5bfe19cc48e8d339fda25a30415d2.zip
chromium_src-352802eea5f5bfe19cc48e8d339fda25a30415d2.tar.gz
chromium_src-352802eea5f5bfe19cc48e8d339fda25a30415d2.tar.bz2
Coverity: Fix a reverse inull.
|rvh| cannot be NULL at this point because we'd crash higher up in the function. CID_COUNT=1 CID=104306 BUG=none TEST=none R=groby Review URL: https://chromiumcodereview.appspot.com/10657032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144080 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/renderer_host/intercept_navigation_resource_throttle.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/renderer_host/intercept_navigation_resource_throttle.cc b/chrome/browser/renderer_host/intercept_navigation_resource_throttle.cc
index 674aa55..3c36d11 100644
--- a/chrome/browser/renderer_host/intercept_navigation_resource_throttle.cc
+++ b/chrome/browser/renderer_host/intercept_navigation_resource_throttle.cc
@@ -45,10 +45,8 @@ void CheckIfShouldIgnoreNavigationOnUIThread(
&validated_url);
bool should_ignore_navigation = false;
- if (rvh) {
- should_ignore_navigation = should_ignore_callback.Run(
- rvh, validated_url, referrer, is_content_initiated);
- }
+ should_ignore_navigation = should_ignore_callback.Run(
+ rvh, validated_url, referrer, is_content_initiated);
BrowserThread::PostTask(
BrowserThread::IO,