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

Unified Diff: chrome/browser/google_apis/task_util.cc

Issue 77553006: google_apis: Random fix in task_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « chrome/browser/google_apis/task_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/task_util.cc
diff --git a/chrome/browser/google_apis/task_util.cc b/chrome/browser/google_apis/task_util.cc
index eb175d82ab189f57962e4a090e4b0825ed470c79..64c47f6b77cbe509804dc295027d40fbecc2fb95 100644
--- a/chrome/browser/google_apis/task_util.cc
+++ b/chrome/browser/google_apis/task_util.cc
@@ -8,12 +8,12 @@
namespace google_apis {
-void RunTaskOnThread(scoped_refptr<base::MessageLoopProxy> relay_proxy,
+void RunTaskOnThread(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const base::Closure& task) {
- if (relay_proxy->BelongsToCurrentThread()) {
+ if (task_runner->BelongsToCurrentThread()) {
task.Run();
} else {
- const bool posted = relay_proxy->PostTask(FROM_HERE, task);
+ const bool posted = task_runner->PostTask(FROM_HERE, task);
DCHECK(posted);
}
}
« no previous file with comments | « chrome/browser/google_apis/task_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698