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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 2230203002: chrome: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed accidental components/ change Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/safe_browsing_service.h" 5 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 prefs_registrar_.Add(this, chrome::NOTIFICATION_PROFILE_DESTROYED, 327 prefs_registrar_.Add(this, chrome::NOTIFICATION_PROFILE_DESTROYED,
328 content::NotificationService::AllSources()); 328 content::NotificationService::AllSources());
329 329
330 // Register all the delayed analysis to the incident reporting service. 330 // Register all the delayed analysis to the incident reporting service.
331 RegisterAllDelayedAnalysis(); 331 RegisterAllDelayedAnalysis();
332 } 332 }
333 333
334 void SafeBrowsingService::ShutDown() { 334 void SafeBrowsingService::ShutDown() {
335 // Deletes the PrefChangeRegistrars, whose dtors also unregister |this| as an 335 // Deletes the PrefChangeRegistrars, whose dtors also unregister |this| as an
336 // observer of the preferences. 336 // observer of the preferences.
337 STLDeleteValues(&prefs_map_); 337 base::STLDeleteValues(&prefs_map_);
338 338
339 // Remove Profile creation/destruction observers. 339 // Remove Profile creation/destruction observers.
340 prefs_registrar_.RemoveAll(); 340 prefs_registrar_.RemoveAll();
341 341
342 Stop(true); 342 Stop(true);
343 343
344 services_delegate_->ShutdownServices(); 344 services_delegate_->ShutdownServices();
345 345
346 // Since URLRequestContextGetters are refcounted, can't count on clearing 346 // Since URLRequestContextGetters are refcounted, can't count on clearing
347 // |url_request_context_getter_| to delete it, so need to shut it down first, 347 // |url_request_context_getter_| to delete it, so need to shut it down first,
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 ping_manager()->ReportThreatDetails(report); 695 ping_manager()->ReportThreatDetails(report);
696 } 696 }
697 697
698 void SafeBrowsingService::ProcessResourceRequest( 698 void SafeBrowsingService::ProcessResourceRequest(
699 const ResourceRequestInfo& request) { 699 const ResourceRequestInfo& request) {
700 DCHECK_CURRENTLY_ON(BrowserThread::UI); 700 DCHECK_CURRENTLY_ON(BrowserThread::UI);
701 services_delegate_->ProcessResourceRequest(&request); 701 services_delegate_->ProcessResourceRequest(&request);
702 } 702 }
703 703
704 } // namespace safe_browsing 704 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698