Index: chrome/browser/notifications/desktop_notification_service_unittest.cc |
diff --git a/chrome/browser/notifications/desktop_notification_service_unittest.cc b/chrome/browser/notifications/desktop_notification_service_unittest.cc |
index f88466b4d812bfa4e7149c69ce6bcb1b9b0be8df..0e52cb458e1cb1af59c5e5d4f62a90bc3974b8b7 100644 |
--- a/chrome/browser/notifications/desktop_notification_service_unittest.cc |
+++ b/chrome/browser/notifications/desktop_notification_service_unittest.cc |
@@ -41,8 +41,10 @@ class ThreadProxy : public base::RefCountedThreadSafe<ThreadProxy> { |
int CacheHasPermission(NotificationsPrefsCache* cache, const GURL& url) { |
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); |
ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, |
- NewRunnableMethod(this, &ThreadProxy::CacheHasPermissionIO, |
- cache, url)); |
+ NewRunnableMethod(this, |
+ &ThreadProxy::CacheHasPermissionIO, |
+ make_scoped_refptr(cache), |
+ url)); |
io_event_.Signal(); |
ui_event_.Wait(); // Wait for IO thread to be done. |
ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, |