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

Unified Diff: ash/system/ime/tray_ime.h

Issue 138833004: Uses WeakPtrFactory instead of base::Unretained. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | ash/system/ime/tray_ime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/ime/tray_ime.h
diff --git a/ash/system/ime/tray_ime.h b/ash/system/ime/tray_ime.h
index b237ae15abc116981ed986263a754814a2610a39..bb65e990f1553026d0fa0d7abd2be406be31f577 100644
--- a/ash/system/ime/tray_ime.h
+++ b/ash/system/ime/tray_ime.h
@@ -7,6 +7,7 @@
#include "ash/system/ime/ime_observer.h"
#include "ash/system/tray/system_tray_item.h"
+#include "base/memory/weak_ptr.h"
namespace views {
class Label;
@@ -61,6 +62,8 @@ class TrayIME : public SystemTrayItem,
bool message_shown_;
+ base::WeakPtrFactory<TrayIME> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(TrayIME);
};
« no previous file with comments | « no previous file | ash/system/ime/tray_ime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698