summaryrefslogtreecommitdiffstats
path: root/ash/keyboard_overlay/keyboard_overlay_delegate.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-11 06:55:05 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-11 06:55:05 +0000
commitfe7e68dbeebc1ed2688f9395221414509db7f208 (patch)
treeeae1d5d7af2deeadaa5efe8dedf6a6050d34d365 /ash/keyboard_overlay/keyboard_overlay_delegate.cc
parentc21df41fea3396ffc1d9672e461c6b42a69625ee (diff)
downloadchromium_src-fe7e68dbeebc1ed2688f9395221414509db7f208.zip
chromium_src-fe7e68dbeebc1ed2688f9395221414509db7f208.tar.gz
chromium_src-fe7e68dbeebc1ed2688f9395221414509db7f208.tar.bz2
Remove Unretained(this) that are not safe in ash/
BUG=349083 R=jamescook@chromium.org Review URL: https://codereview.chromium.org/326993002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/keyboard_overlay/keyboard_overlay_delegate.cc')
-rw-r--r--ash/keyboard_overlay/keyboard_overlay_delegate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/keyboard_overlay/keyboard_overlay_delegate.cc b/ash/keyboard_overlay/keyboard_overlay_delegate.cc
index 266319a..877fe2a 100644
--- a/ash/keyboard_overlay/keyboard_overlay_delegate.cc
+++ b/ash/keyboard_overlay/keyboard_overlay_delegate.cc
@@ -50,7 +50,7 @@ class PaintMessageHandler
void PaintMessageHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback(
"didPaint",
- base::Bind(&PaintMessageHandler::DidPaint, base::Unretained(this)));
+ base::Bind(&PaintMessageHandler::DidPaint, AsWeakPtr()));
}
void PaintMessageHandler::DidPaint(const base::ListValue* args) {