summaryrefslogtreecommitdiffstats
path: root/chrome/browser/visitedlink_unittest.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-17 20:23:57 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-17 20:23:57 +0000
commit8f44326c296a4324c9a2696e26dba67178f63c24 (patch)
tree4415027e022daeb306027452648a23d18174437d /chrome/browser/visitedlink_unittest.cc
parent5344ba96a3df57e9d0b74bd09aac37c9c781a2fc (diff)
downloadchromium_src-8f44326c296a4324c9a2696e26dba67178f63c24.zip
chromium_src-8f44326c296a4324c9a2696e26dba67178f63c24.tar.gz
chromium_src-8f44326c296a4324c9a2696e26dba67178f63c24.tar.bz2
Launch processes asynchronously so as not to block the UI thread. For now, renderer only, I'll take care of plugin/worker/utility processes in a followup change.
BUG=6844 Review URL: http://codereview.chromium.org/397002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32203 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/visitedlink_unittest.cc')
-rw-r--r--chrome/browser/visitedlink_unittest.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/visitedlink_unittest.cc b/chrome/browser/visitedlink_unittest.cc
index b873243..3d79355 100644
--- a/chrome/browser/visitedlink_unittest.cc
+++ b/chrome/browser/visitedlink_unittest.cc
@@ -131,7 +131,8 @@ class VisitedLinkTest : public testing::Test {
// Create a slave database.
VisitedLinkSlave slave;
base::SharedMemoryHandle new_handle = base::SharedMemory::NULLHandle();
- master_->ShareToProcess(base::GetCurrentProcessHandle(), &new_handle);
+ master_->shared_memory()->ShareToProcess(
+ base::GetCurrentProcessHandle(), &new_handle);
bool success = slave.Init(new_handle);
ASSERT_TRUE(success);
g_slaves.push_back(&slave);
@@ -271,7 +272,8 @@ TEST_F(VisitedLinkTest, DeleteAll) {
{
VisitedLinkSlave slave;
base::SharedMemoryHandle new_handle = base::SharedMemory::NULLHandle();
- master_->ShareToProcess(base::GetCurrentProcessHandle(), &new_handle);
+ master_->shared_memory()->ShareToProcess(
+ base::GetCurrentProcessHandle(), &new_handle);
ASSERT_TRUE(slave.Init(new_handle));
g_slaves.push_back(&slave);
@@ -319,7 +321,8 @@ TEST_F(VisitedLinkTest, Resizing) {
// ...and a slave
VisitedLinkSlave slave;
base::SharedMemoryHandle new_handle = base::SharedMemory::NULLHandle();
- master_->ShareToProcess(base::GetCurrentProcessHandle(), &new_handle);
+ master_->shared_memory()->ShareToProcess(
+ base::GetCurrentProcessHandle(), &new_handle);
bool success = slave.Init(new_handle);
ASSERT_TRUE(success);
g_slaves.push_back(&slave);