diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 22:02:57 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 22:02:57 +0000 |
commit | 9cb31511cb8ba57c36157c5a509ffd3fe4568437 (patch) | |
tree | 3110acca212c5387d4e0965d371c7a3c207c6871 /chrome/browser/idbbindingutilities_browsertest.cc | |
parent | 06dbd0779f5a378f33d26526db0f9216c28ff35c (diff) | |
download | chromium_src-9cb31511cb8ba57c36157c5a509ffd3fe4568437.zip chromium_src-9cb31511cb8ba57c36157c5a509ffd3fe4568437.tar.gz chromium_src-9cb31511cb8ba57c36157c5a509ffd3fe4568437.tar.bz2 |
Revert 80702 - Remove RDH from UtilityProcessHost.The utility process should not need to issue resource requests.BUG=78596TEST=noneReview URL: http://codereview.chromium.org/6805008
TBR=willchan@chromium.org
Review URL: http://codereview.chromium.org/6805020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/idbbindingutilities_browsertest.cc')
-rw-r--r-- | chrome/browser/idbbindingutilities_browsertest.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/idbbindingutilities_browsertest.cc b/chrome/browser/idbbindingutilities_browsertest.cc index aa7a2d7..cf95cb6 100644 --- a/chrome/browser/idbbindingutilities_browsertest.cc +++ b/chrome/browser/idbbindingutilities_browsertest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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,16 +67,18 @@ class IDBKeyPathHelper : public UtilityProcessHost::Client { value_for_key_path_failed_(false) { } - void CreateUtilityProcess() { + void CreateUtilityProcess(ResourceDispatcherHost* resource_dispatcher_host) { if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { BrowserThread::PostTask( BrowserThread::IO, FROM_HERE, - NewRunnableMethod(this, &IDBKeyPathHelper::CreateUtilityProcess)); + NewRunnableMethod(this, &IDBKeyPathHelper::CreateUtilityProcess, + resource_dispatcher_host)); return; } DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); utility_process_host_ = - new UtilityProcessHost(this, BrowserThread::IO); + new UtilityProcessHost(resource_dispatcher_host, this, + BrowserThread::IO); utility_process_host_->StartBatchMode(); BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, new MessageLoop::QuitTask()); @@ -191,7 +193,8 @@ class ScopedIDBKeyPathHelper { public: ScopedIDBKeyPathHelper() { key_path_helper_ = new IDBKeyPathHelper(); - key_path_helper_->CreateUtilityProcess(); + key_path_helper_->CreateUtilityProcess( + g_browser_process->resource_dispatcher_host()); ui_test_utils::RunMessageLoop(); } |