| Index: chrome/browser/idbbindingutilities_browsertest.cc
|
| diff --git a/chrome/browser/idbbindingutilities_browsertest.cc b/chrome/browser/idbbindingutilities_browsertest.cc
|
| index cf95cb63bfb93b2d3802c3c697391f432da5df03..aa7a2d7ad52bfb7271efb0212729f4623a5bef96 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();
|
| }
|
|
|
|
|