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

Issue 341713004: Use weak pointer to where possible (Closed)

Created:
6 years, 6 months ago by oshima
Modified:
6 years, 6 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Use weak pointer where possible. * Use weak pointer for cros settings callback * Pass weak pointer to the thread pool task so that calling back to UI thread is safe. BUG=349083 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278263

Patch Set 1 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -177 lines) Patch
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h View 7 chunks +45 lines, -39 lines 0 comments Download
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc View 14 chunks +135 lines, -138 lines 3 comments Download

Messages

Total messages: 10 (0 generated)
oshima
another try to eliminate a couple of more Unretained
6 years, 6 months ago (2014-06-18 01:26:42 UTC) #1
Alexander Alekseev
On 2014/06/18 01:26:42, oshima wrote: > another try to eliminate a couple of more Unretained ...
6 years, 6 months ago (2014-06-18 12:58:23 UTC) #2
bshe
On 2014/06/18 12:58:23, alemate wrote: > On 2014/06/18 01:26:42, oshima wrote: > > another try ...
6 years, 6 months ago (2014-06-18 13:33:31 UTC) #3
Alexander Alekseev
https://codereview.chromium.org/341713004/diff/20001/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc File chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc (right): https://codereview.chromium.org/341713004/diff/20001/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc#newcode1043 chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc:1043: weak_ptr, This seems to be dangerous, as WeakPtr is ...
6 years, 6 months ago (2014-06-18 19:11:19 UTC) #4
oshima
https://codereview.chromium.org/341713004/diff/20001/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc File chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc (right): https://codereview.chromium.org/341713004/diff/20001/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc#newcode1043 chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc:1043: weak_ptr, On 2014/06/18 19:11:18, alemate wrote: > This seems ...
6 years, 6 months ago (2014-06-18 19:25:25 UTC) #5
Alexander Alekseev
lgtm https://codereview.chromium.org/341713004/diff/20001/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc File chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc (right): https://codereview.chromium.org/341713004/diff/20001/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc#newcode1043 chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc:1043: weak_ptr, On 2014/06/18 19:25:25, oshima wrote: > On ...
6 years, 6 months ago (2014-06-18 19:57:58 UTC) #6
bshe
On 2014/06/18 19:57:58, alemate wrote: > lgtm > > https://codereview.chromium.org/341713004/diff/20001/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc > File chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc (right): > ...
6 years, 6 months ago (2014-06-18 21:13:01 UTC) #7
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 6 months ago (2014-06-18 21:14:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/341713004/20001
6 years, 6 months ago (2014-06-18 21:15:02 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 04:08:55 UTC) #10
Message was sent while issue was closed.
Change committed as 278263

Powered by Google App Engine
This is Rietveld 408576698