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

Unified Diff: base/weak_ptr.h

Issue 181014: Eliminate remaining WebCore dependencies from webplugin_impl.cc... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
Index: base/weak_ptr.h
===================================================================
--- base/weak_ptr.h (revision 25087)
+++ base/weak_ptr.h (working copy)
@@ -161,6 +161,11 @@
return get();
}
+ void reset() {
+ ref_ = internal::WeakReference();
+ ptr_ = NULL;
+ }
+
private:
friend class SupportsWeakPtr<T>;
friend class WeakPtrFactory<T>;
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view.h » ('j') | chrome/renderer/render_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698