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

Issue 6094017: Experiment to help track down bug 68766.... (Closed)

Created:
9 years, 11 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Experiment to help track down bug 68766. Calls ChromeURLRequest::IsExternal() inside ResourceDispatcherHost to see if the URLRequestContext was a valid ChromeURLRequestContext at the point when it was set. BUG=68766 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71064

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 3 chunks +23 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
eroman
9 years, 11 months ago (2011-01-11 04:36:45 UTC) #1
willchan no longer on Chromium
9 years, 11 months ago (2011-01-11 19:08:20 UTC) #2
LGTM

On Mon, Jan 10, 2011 at 8:36 PM, <eroman@chromium.org> wrote:

> Reviewers: willchan,
>
> Description:
> Experiment to help track down bug 68766.
>
> Calls ChromeURLRequest::IsExternal() inside ResourceDispatcherHost to see
> if the
> URLRequestContext was a valid ChromeURLRequestContext at the point when it
> was
> set.
>
> BUG=68766
>
>
> Please review this at http://codereview.chromium.org/6094017/
>
> SVN Base: svn://chrome-svn/chrome/trunk/src/
>
> Affected files:
>  M     chrome/browser/renderer_host/resource_dispatcher_host.cc
>
>
> Index: chrome/browser/renderer_host/resource_dispatcher_host.cc
> ===================================================================
> --- chrome/browser/renderer_host/resource_dispatcher_host.cc    (revision
> 70977)
> +++ chrome/browser/renderer_host/resource_dispatcher_host.cc    (working
> copy)
> @@ -194,6 +194,24 @@
>   return all_error_codes;
>  }
>
> +#if defined(OS_WIN)
> +#pragma warning (disable: 4748)
> +#pragma optimize( "", off )
> +#endif
> +
> +// Temporary experiment to help track down http://crbug.com/68766.
> +// This should crash if called with an invalid ChromeURLRequestContext.
> +// TODO(eroman): Delete this when experiment is complete.
> +void CheckContextForBug68766(URLRequestContext* context) {
> +  if (context)
> +    static_cast<ChromeURLRequestContext*>(context)->IsExternal();
> +}
> +
> +#if defined(OS_WIN)
> +#pragma optimize( "", on )
> +#pragma warning (default: 4748)
> +#endif
> +
>  }  // namespace
>
>  ResourceDispatcherHost::ResourceDispatcherHost()
> @@ -349,6 +367,8 @@
>   ChromeURLRequestContext* context = filter_->GetURLRequestContext(
>       request_id, request_data.resource_type);
>
> +  CheckContextForBug68766(context);
> +
>   // Might need to resolve the blob references in the upload data.
>   if (request_data.upload_data && context) {
>     context->blob_storage_context()->controller()->
> @@ -1301,8 +1321,10 @@
>     return;
>   }
>
> -  if (!defer_start)
> +  if (!defer_start) {
> +    CheckContextForBug68766(request->context());
>     InsertIntoResourceQueue(request, *info);
> +  }
>  }
>
>  void ResourceDispatcherHost::InsertIntoResourceQueue(
>
>
>

Powered by Google App Engine
This is Rietveld 408576698