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

Unified Diff: chrome/service/cloud_print/cloud_print_proxy_backend.h

Issue 2110603002: Remove calls to MessageLoop::current() in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « chrome/browser/process_singleton_posix.cc ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_proxy_backend.h
diff --git a/chrome/service/cloud_print/cloud_print_proxy_backend.h b/chrome/service/cloud_print/cloud_print_proxy_backend.h
index 37684b953625e2df7508445a8f121f427c93d353..6ef6964251ea9e3c5766a433b5ac85fabf906b02 100644
--- a/chrome/service/cloud_print/cloud_print_proxy_backend.h
+++ b/chrome/service/cloud_print/cloud_print_proxy_backend.h
@@ -9,6 +9,8 @@
#include <string>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "chrome/service/cloud_print/connector_settings.h"
#include "printing/backend/print_backend.h"
@@ -91,9 +93,9 @@ class CloudPrintProxyBackend {
// which contains printer registration code.
scoped_refptr<Core> core_;
- // A reference to the MessageLoop used to construct |this|, so we know how
- // to safely talk back to the SyncFrontend.
- base::MessageLoop* const frontend_loop_;
+ // A reference to the TaskRunner used to construct |this|, so we know how to
+ // safely talk back to the SyncFrontend.
+ const scoped_refptr<base::SingleThreadTaskRunner> frontend_task_runner_;
// The frontend which is responsible for displaying UI and updating Prefs.
// Outlives this backend.
« no previous file with comments | « chrome/browser/process_singleton_posix.cc ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698