Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1174)

Unified Diff: content/browser/service_worker/service_worker_test_utils.h

Issue 250653002: Mark some content::BrowserThread methods with WARN_UNUSED_RESULT. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/browser/browser_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_test_utils.h
===================================================================
--- content/browser/service_worker/service_worker_test_utils.h (revision 264912)
+++ content/browser/service_worker/service_worker_test_utils.h (working copy)
@@ -29,7 +29,8 @@
template <typename Arg> base::Callback<void(Arg)>
CreateReceiverOnCurrentThread(Arg* out) {
BrowserThread::ID id;
- BrowserThread::GetCurrentThreadIdentifier(&id);
+ bool ret = BrowserThread::GetCurrentThreadIdentifier(&id);
+ DCHECK(ret);
return base::Bind(&ReceiveResult<Arg>, id, base::Closure(), out);
}
« no previous file with comments | « no previous file | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698