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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/last_download_finder.cc

Issue 783963003: Removing HistoryService::profile() method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698