Commit 4d70d634 authored by epenner@chromium.org's avatar epenner@chromium.org

Fix linux redux build.


BUG=


Review URL: https://chromiumcodereview.appspot.com/11428166

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171127 0039d316-1c4b-4281-b951-d872f2087c98
parent 90617210
......@@ -288,9 +288,9 @@ void ChromeResourceDispatcherHostDelegate::AppendStandardResourceThrottles(
#if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING)
// Insert safe browsing at the front of the list, so it gets to decide on
// policies first.
bool is_subresource_request = resource_type != ResourceType::MAIN_FRAME;
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
if (io_data->safe_browsing_enabled()->GetValue()) {
bool is_subresource_request = resource_type != ResourceType::MAIN_FRAME;
content::ResourceThrottle* throttle =
SafeBrowsingResourceThrottleFactory::Create(request, child_id, route_id,
is_subresource_request, safe_browsing_);
......@@ -300,6 +300,7 @@ void ChromeResourceDispatcherHostDelegate::AppendStandardResourceThrottles(
#endif
#if !defined(OS_ANDROID)
bool is_subresource_request = resource_type != ResourceType::MAIN_FRAME;
throttles->push_back(new ManagedModeResourceThrottle(
request, child_id, route_id, !is_subresource_request));
#endif
......
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