Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h " | 5 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h " |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 332 case chrome::NOTIFICATION_PROFILE_DESTROYED: | 332 case chrome::NOTIFICATION_PROFILE_DESTROYED: |
| 333 AbandonSearchInProfile(content::Source<Profile>(source).ptr()); | 333 AbandonSearchInProfile(content::Source<Profile>(source).ptr()); |
| 334 break; | 334 break; |
| 335 default: | 335 default: |
| 336 break; | 336 break; |
| 337 } | 337 } |
| 338 } | 338 } |
| 339 | 339 |
| 340 void LastDownloadFinder::OnHistoryServiceLoaded( | 340 void LastDownloadFinder::OnHistoryServiceLoaded( |
| 341 HistoryService* history_service) { | 341 HistoryService* history_service) { |
| 342 OnProfileHistoryLoaded(history_service->profile(), history_service); | 342 OnProfileHistoryLoaded(history_service->profile_, history_service); |
|
sdefresne
2014/12/10 15:41:50
Please do not access the instance variable profile
Paritosh Kumar
2014/12/11 11:49:54
Thanks Updated as per suggestion.
| |
| 343 } | 343 } |
| 344 | 344 |
| 345 void LastDownloadFinder::HistoryServiceBeingDeleted( | 345 void LastDownloadFinder::HistoryServiceBeingDeleted( |
| 346 HistoryService* history_service) { | 346 HistoryService* history_service) { |
| 347 history_service_observer_.Remove(history_service); | 347 history_service_observer_.Remove(history_service); |
| 348 } | 348 } |
| 349 | 349 |
| 350 } // namespace safe_browsing | 350 } // namespace safe_browsing |
| OLD | NEW |