summaryrefslogtreecommitdiffstats
path: root/chrome/browser/idbbindingutilities_browsertest.cc
diff options
context:
space:
mode:
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();
}