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

Unified Diff: chrome/browser/download/download_ui_controller_unittest.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/download/download_ui_controller_unittest.cc
diff --git a/chrome/browser/download/download_ui_controller_unittest.cc b/chrome/browser/download/download_ui_controller_unittest.cc
index 61691c4365eb4fa9d76ef1eb1a722a09f4a31ac8..d3fc9cbf71c143e6c5423579a740f8b9e9cad312 100644
--- a/chrome/browser/download/download_ui_controller_unittest.cc
+++ b/chrome/browser/download/download_ui_controller_unittest.cc
@@ -41,7 +41,7 @@ TestDelegate::TestDelegate(base::WeakPtr<content::DownloadItem*> receiver)
}
void TestDelegate::NotifyDownloadStarting(content::DownloadItem* item) {
- if (receiver_)
+ if (receiver_.get())
*receiver_ = item;
}

Powered by Google App Engine
This is Rietveld 408576698