Index: chrome/browser/notifications/desktop_notification_service_unittest.cc |
=================================================================== |
--- chrome/browser/notifications/desktop_notification_service_unittest.cc (revision 62042) |
+++ chrome/browser/notifications/desktop_notification_service_unittest.cc (working copy) |
@@ -41,10 +41,8 @@ |
int CacheHasPermission(NotificationsPrefsCache* cache, const GURL& url) { |
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); |
ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, |
- NewRunnableMethod(this, |
- &ThreadProxy::CacheHasPermissionIO, |
- make_scoped_refptr(cache), |
- url)); |
+ NewRunnableMethod(this, &ThreadProxy::CacheHasPermissionIO, |
+ cache, url)); |
io_event_.Signal(); |
ui_event_.Wait(); // Wait for IO thread to be done. |
ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, |