Chromium Code Reviews| Index: chrome/test/base/testing_browser_process.cc |
| =================================================================== |
| --- chrome/test/base/testing_browser_process.cc (revision 213177) |
| +++ chrome/test/base/testing_browser_process.cc (working copy) |
| @@ -329,13 +329,6 @@ |
| NOTIMPLEMENTED(); |
| return NULL; |
| #else |
| - if (!storage_monitor_.get()) { |
| - chrome::test::TestStorageMonitor* monitor = |
|
vandebo (ex-Chrome)
2013/07/24 14:42:59
Why get rid of this, this is how a lot of things i
|
| - new chrome::test::TestStorageMonitor(); |
| - monitor->Init(); |
| - monitor->MarkInitialized(); |
| - storage_monitor_.reset(monitor); |
| - } |
| return storage_monitor_.get(); |
| #endif |
| } |
| @@ -422,6 +415,6 @@ |
| void TestingBrowserProcess::SetStorageMonitor( |
| scoped_ptr<chrome::StorageMonitor> storage_monitor) { |
| #if !defined(OS_IOS) && !defined(OS_ANDROID) |
| - storage_monitor_.reset(storage_monitor.release()); |
| + storage_monitor_ = storage_monitor.Pass(); |
| #endif |
| } |