| Index: chrome/browser/tabs/tab_strip_model_unittest.cc
|
| diff --git a/chrome/browser/tabs/tab_strip_model_unittest.cc b/chrome/browser/tabs/tab_strip_model_unittest.cc
|
| index 1bb904d95c692e9376f61546f15708abf3987b5b..fa49550a0b29e4c658fb697e943276d9801f9def 100644
|
| --- a/chrome/browser/tabs/tab_strip_model_unittest.cc
|
| +++ b/chrome/browser/tabs/tab_strip_model_unittest.cc
|
| @@ -153,7 +153,12 @@ class TabStripModelTest : public RenderViewHostTestHarness {
|
| public:
|
| TabStripModelTest()
|
| : RenderViewHostTestHarness(),
|
| - browser_thread_(BrowserThread::UI, &message_loop_) {}
|
| + browser_thread_(BrowserThread::UI, &message_loop_) {
|
| +#if defined(OS_MACOSX)
|
| + base::SystemMonitor::AllocateSystemIOPorts();
|
| +#endif
|
| + system_monitor.reset(new base::SystemMonitor);
|
| + }
|
|
|
| TabContentsWrapper* CreateTabContents() {
|
| return Browser::TabContentsFactory(profile(), NULL, 0, NULL, NULL);
|
| @@ -270,7 +275,7 @@ class TabStripModelTest : public RenderViewHostTestHarness {
|
| std::map<TabContents*, int> foo_;
|
|
|
| // ProfileManager requires a base::SystemMonitor.
|
| - base::SystemMonitor system_monitor;
|
| + scoped_ptr<base::SystemMonitor> system_monitor;
|
|
|
| ProfileManager pm_;
|
| };
|
|
|