diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 16:24:55 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 16:24:55 +0000 |
commit | 8be8294d1b808cc713241b7255d2ce3ebbed4718 (patch) | |
tree | 100287e38fe6924ffe5db5488dbe64b5d7df1ced /chrome/browser/notifications/desktop_notification_service_unittest.cc | |
parent | 1758e88fd909ea0ffd49621e8066ffad5627ffdf (diff) | |
download | chromium_src-8be8294d1b808cc713241b7255d2ce3ebbed4718.zip chromium_src-8be8294d1b808cc713241b7255d2ce3ebbed4718.tar.gz chromium_src-8be8294d1b808cc713241b7255d2ce3ebbed4718.tar.bz2 |
Use make_scoped_refptr for NewRunnableMethod if the raw ptr type is derived from RefCountedThreadSafe
Like http://codereview.chromium.org/4053006 , but for all of chrome.
This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2809041. I manually fixed the one presubmit warning the rewriter introduced.
BUG=28083
TEST=None
Review URL: http://codereview.chromium.org/4188008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/desktop_notification_service_unittest.cc')
-rw-r--r-- | chrome/browser/notifications/desktop_notification_service_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/notifications/desktop_notification_service_unittest.cc b/chrome/browser/notifications/desktop_notification_service_unittest.cc index 9f0067c..3c1c8ca 100644 --- a/chrome/browser/notifications/desktop_notification_service_unittest.cc +++ b/chrome/browser/notifications/desktop_notification_service_unittest.cc @@ -42,7 +42,7 @@ class ThreadProxy : public base::RefCountedThreadSafe<ThreadProxy> { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, NewRunnableMethod(this, &ThreadProxy::CacheHasPermissionIO, - cache, url)); + make_scoped_refptr(cache), url)); io_event_.Signal(); ui_event_.Wait(); // Wait for IO thread to be done. BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |