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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_task_manager.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, 7 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/sync_file_system/drive_file_sync_task_manager.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_task_manager.cc b/chrome/browser/sync_file_system/drive_file_sync_task_manager.cc
index 54a25e1d7cd8ab544e84838e0320f74b4acd2398..f358386cb9f2378ab9155ce598505a37dc6c0d8d 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_task_manager.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_task_manager.cc
@@ -33,9 +33,9 @@ class DriveFileSyncTaskManager::TaskToken {
// it must return the token to DriveFileSyncService.
// Destroying a token with valid |sync_service_| indicates the token was
// dropped by a task without returning.
- if (manager_ && manager_->service_.get()) {
- NOTREACHED() << "Unexpected TaskToken deletion from: "
- << location_.ToString();
+ if (manager_.get() && manager_->service_.get()) {
+ NOTREACHED()
+ << "Unexpected TaskToken deletion from: " << location_.ToString();
// Reinitializes the token.
manager_->NotifyTaskDone(

Powered by Google App Engine
This is Rietveld 408576698