From 4d9dcff2b947ad34ce997397ab662c7e91667c07 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Wed, 6 Apr 2011 22:49:08 +0000 Subject: Remove RDH from UtilityProcessHost. The utility process should not need to issue resource requests. BUG=78596 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80702 Review URL: http://codereview.chromium.org/6805008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80714 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/idbbindingutilities_browsertest.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'chrome/browser/idbbindingutilities_browsertest.cc') diff --git a/chrome/browser/idbbindingutilities_browsertest.cc b/chrome/browser/idbbindingutilities_browsertest.cc index cf95cb6..aa7a2d7 100644 --- a/chrome/browser/idbbindingutilities_browsertest.cc +++ b/chrome/browser/idbbindingutilities_browsertest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -67,18 +67,16 @@ class IDBKeyPathHelper : public UtilityProcessHost::Client { value_for_key_path_failed_(false) { } - void CreateUtilityProcess(ResourceDispatcherHost* resource_dispatcher_host) { + void CreateUtilityProcess() { if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { BrowserThread::PostTask( BrowserThread::IO, FROM_HERE, - NewRunnableMethod(this, &IDBKeyPathHelper::CreateUtilityProcess, - resource_dispatcher_host)); + NewRunnableMethod(this, &IDBKeyPathHelper::CreateUtilityProcess)); return; } DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); utility_process_host_ = - new UtilityProcessHost(resource_dispatcher_host, this, - BrowserThread::IO); + new UtilityProcessHost(this, BrowserThread::IO); utility_process_host_->StartBatchMode(); BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask()); @@ -193,8 +191,7 @@ class ScopedIDBKeyPathHelper { public: ScopedIDBKeyPathHelper() { key_path_helper_ = new IDBKeyPathHelper(); - key_path_helper_->CreateUtilityProcess( - g_browser_process->resource_dispatcher_host()); + key_path_helper_->CreateUtilityProcess(); ui_test_utils::RunMessageLoop(); } -- cgit v1.1