summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ssl/ssl_error_handler.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-30 22:25:37 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-30 22:25:37 +0000
commit336870f3ec778c3677edc16395aaaa042f05e140 (patch)
tree0efe3357e2464be8f6a6843cebe6c671a9d3ceb2 /chrome/browser/ssl/ssl_error_handler.cc
parentda71fd2d44c8f5367de6b921948d9e19bdf58b8d (diff)
downloadchromium_src-336870f3ec778c3677edc16395aaaa042f05e140.zip
chromium_src-336870f3ec778c3677edc16395aaaa042f05e140.tar.gz
chromium_src-336870f3ec778c3677edc16395aaaa042f05e140.tar.bz2
Move GetTabContentsID out of tab util because it has nothing to do with tabs or
TabContents. I put a more accurately named static function in ResourceDispatcherHost which is what really controls this request data. I also moved a couple of static functions from the header to the cc in resource_dispatcher. Review URL: http://codereview.chromium.org/150124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl/ssl_error_handler.cc')
-rw-r--r--chrome/browser/ssl/ssl_error_handler.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/ssl/ssl_error_handler.cc b/chrome/browser/ssl/ssl_error_handler.cc
index 3319f26..b7f3fd2 100644
--- a/chrome/browser/ssl/ssl_error_handler.cc
+++ b/chrome/browser/ssl/ssl_error_handler.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ssl/ssl_error_handler.h"
#include "base/message_loop.h"
+#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/browser/ssl/ssl_cert_error_handler.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_util.h"
@@ -34,9 +35,9 @@ SSLErrorHandler::SSLErrorHandler(ResourceDispatcherHost* rdh,
request_id_.process_id = info->process_id;
request_id_.request_id = info->request_id;
- if (!tab_util::GetTabContentsID(request,
- &render_process_host_id_,
- &tab_contents_id_))
+ if (!ResourceDispatcherHost::RenderViewForRequest(request,
+ &render_process_host_id_,
+ &tab_contents_id_))
NOTREACHED();
// This makes sure we don't disappear on the IO thread until we've given an