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

Unified Diff: content/browser/child_process_launcher.h

Issue 2910083002: Replace deprecated base::NonThreadSafe in content/browser in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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/browser/child_process_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_launcher.h
diff --git a/content/browser/child_process_launcher.h b/content/browser/child_process_launcher.h
index 736a7340695dcfe2922ec3d3aefa4e33515a0b78..074f2cf6b250c3c667634c5cc3d211bd5e2f3988 100644
--- a/content/browser/child_process_launcher.h
+++ b/content/browser/child_process_launcher.h
@@ -13,7 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "base/process/kill.h"
#include "base/process/process.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "build/build_config.h"
#include "content/browser/child_process_launcher_helper.h"
#include "content/common/content_export.h"
@@ -52,7 +52,7 @@ static_assert(static_cast<int>(LAUNCH_RESULT_START) >
// Launches a process asynchronously and notifies the client of the process
// handle when it's available. It's used to avoid blocking the calling thread
// on the OS since often it can take > 100 ms to create the process.
-class CONTENT_EXPORT ChildProcessLauncher : public base::NonThreadSafe {
+class CONTENT_EXPORT ChildProcessLauncher {
public:
class CONTENT_EXPORT Client {
public:
@@ -172,6 +172,8 @@ class CONTENT_EXPORT ChildProcessLauncher : public base::NonThreadSafe {
scoped_refptr<internal::ChildProcessLauncherHelper> helper_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<ChildProcessLauncher> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher);
« no previous file with comments | « no previous file | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698