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

Unified Diff: trunk/src/base/memory/weak_ptr.h

Issue 20771002: Revert 213906 "base: Re-apply WeakPtr support for SequencedWorke..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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 | « trunk/src/base/base.gyp ('k') | trunk/src/base/memory/weak_ptr.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/base/memory/weak_ptr.h
===================================================================
--- trunk/src/base/memory/weak_ptr.h (revision 213937)
+++ trunk/src/base/memory/weak_ptr.h (working copy)
@@ -67,8 +67,8 @@
#include "base/base_export.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
-#include "base/sequence_checker.h"
#include "base/template_util.h"
+#include "base/threading/thread_checker.h"
namespace base {
@@ -91,14 +91,14 @@
bool IsValid() const;
// Remove this when crbug.com/234964 is addressed.
- void DetachFromThreadHack() { sequence_checker_.DetachFromSequence(); }
+ void DetachFromThreadHack() { thread_checker_.DetachFromThread(); }
private:
friend class base::RefCountedThreadSafe<Flag>;
~Flag();
- SequenceChecker sequence_checker_;
+ ThreadChecker thread_checker_;
bool is_valid_;
};
« no previous file with comments | « trunk/src/base/base.gyp ('k') | trunk/src/base/memory/weak_ptr.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698