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

Unified Diff: chrome/browser/metrics/tracking_synchronizer.cc

Issue 15987009: Update chrome/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: chrome/browser/metrics/tracking_synchronizer.cc
diff --git a/chrome/browser/metrics/tracking_synchronizer.cc b/chrome/browser/metrics/tracking_synchronizer.cc
index bdc08887b9ab700f8c655016c88e00f3e54d73de..383b039281d7aa8a3a6facfef30555534bc22001 100644
--- a/chrome/browser/metrics/tracking_synchronizer.cc
+++ b/chrome/browser/metrics/tracking_synchronizer.cc
@@ -132,7 +132,7 @@ class TrackingSynchronizer::RequestContext {
bool received_process_group_count = request->received_process_group_count_;
int unresponsive_processes = request->processes_pending_;
- if (request->callback_object_)
+ if (request->callback_object_.get())
request->callback_object_->FinishedReceivingProfilerData();
delete request;
@@ -274,9 +274,9 @@ void TrackingSynchronizer::DecrementPendingProcessesAndSendData(
if (!request)
return;
- if (request->callback_object_) {
- request->callback_object_->ReceivedProfilerData(profiler_data,
- process_type);
+ if (request->callback_object_.get()) {
+ request->callback_object_
+ ->ReceivedProfilerData(profiler_data, process_type);
}
// Delete request if we have heard back from all child processes.
« no previous file with comments | « chrome/browser/media/media_stream_capture_indicator.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698