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

Unified Diff: chrome/browser/sync/profile_sync_service_typed_url_unittest.cc

Issue 1074963003: Clean up potentially leaky use of base::DeletePointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed another probleb Created 5 years, 8 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 | « base/bind_helpers.h ('k') | chromeos/network/firewall_hole.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
index 2a7bc235886d8b3def896088bd45229d0605be03..3c5c77eddf0faf067cb19324d16237db7180350a 100644
--- a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
@@ -126,7 +126,7 @@ class HistoryServiceMock : public history::HistoryService {
base::Bind(&HistoryServiceMock::RunTaskOnDBThread,
base::Unretained(this), task_raw),
base::Bind(&base::DeletePointer<history::HistoryDBTask>,
- task.release()));
+ base::Passed(&task)));
return base::CancelableTaskTracker::kBadTaskId; // unused
}
« no previous file with comments | « base/bind_helpers.h ('k') | chromeos/network/firewall_hole.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698