summaryrefslogtreecommitdiffstats
path: root/chrome/browser/idbbindingutilities_browsertest.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 22:49:08 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 22:49:08 +0000
commit4d9dcff2b947ad34ce997397ab662c7e91667c07 (patch)
tree690f4f79a2c8c98bc501f343673c62af90dbb230 /chrome/browser/idbbindingutilities_browsertest.cc
parent56c256e6f87db14400534062a6d6cc4eab912b03 (diff)
downloadchromium_src-4d9dcff2b947ad34ce997397ab662c7e91667c07.zip
chromium_src-4d9dcff2b947ad34ce997397ab662c7e91667c07.tar.gz
chromium_src-4d9dcff2b947ad34ce997397ab662c7e91667c07.tar.bz2
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
Diffstat (limited to 'chrome/browser/idbbindingutilities_browsertest.cc')
-rw-r--r--chrome/browser/idbbindingutilities_browsertest.cc13
1 files changed, 5 insertions, 8 deletions
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();
}