diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-25 19:36:01 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-25 19:36:01 +0000 |
commit | f8646f7f53d9f48139b37588953170c3a882509f (patch) | |
tree | b3ac6c7923aa80023053ce63bf0df81bdaeb50a1 /webkit/glue/resource_fetcher.cc | |
parent | 7b3de9c38dfefae734c4ae1e56aa3cb73f788918 (diff) | |
download | chromium_src-f8646f7f53d9f48139b37588953170c3a882509f.zip chromium_src-f8646f7f53d9f48139b37588953170c3a882509f.tar.gz chromium_src-f8646f7f53d9f48139b37588953170c3a882509f.tar.bz2 |
Remove unused code. Frame::loader() is never null.
BUG=none
TEST=none
R=tony
Review URL: http://codereview.chromium.org/147139
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/resource_fetcher.cc')
-rw-r--r-- | webkit/glue/resource_fetcher.cc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/webkit/glue/resource_fetcher.cc b/webkit/glue/resource_fetcher.cc index 9d6379c..b72ea54 100644 --- a/webkit/glue/resource_fetcher.cc +++ b/webkit/glue/resource_fetcher.cc @@ -46,27 +46,14 @@ void ResourceFetcher::Cancel() { } void ResourceFetcher::Start(WebCore::Frame* frame) { - WebCore::FrameLoader* frame_loader = frame->loader(); - if (!frame_loader) { - // We put this on a 0 timer so the callback happens async (consistent with - // regular fetches). - start_failed_timer_.reset(new StartFailedTimer(this, - &ResourceFetcher::StartFailed)); - start_failed_timer_->startOneShot(0); - return; - } - WebCore::ResourceRequest request(webkit_glue::GURLToKURL(url_)); WebCore::ResourceResponse response; - frame_loader->client()->dispatchWillSendRequest(NULL, 0, request, response); + frame->loader()->client()->dispatchWillSendRequest(NULL, 0, request, + response); loader_ = ResourceHandle::create(request, this, NULL, false, false); } -void ResourceFetcher::StartFailed(StartFailedTimer* timer) { - didFail(NULL, ResourceError()); -} - ///////////////////////////////////////////////////////////////////////////// // ResourceHandleClient methods void ResourceFetcher::didReceiveResponse(ResourceHandle* resource_handle, |