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

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

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments Created 4 years, 8 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 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/blacklist_load_analyze r.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyze r.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" 9 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
10 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 10 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
11 11
12 namespace safe_browsing { 12 namespace safe_browsing {
13 13
14 void RegisterBlacklistLoadAnalysis() { 14 void RegisterBlacklistLoadAnalysis() {
15 #if defined(OS_WIN) 15 #if defined(OS_WIN)
16 scoped_refptr<SafeBrowsingService> safe_browsing_service( 16 scoped_refptr<SafeBrowsingService> safe_browsing_service(
17 g_browser_process->safe_browsing_service()); 17 g_browser_process->safe_browsing_service());
18 18
19 safe_browsing_service->RegisterDelayedAnalysisCallback( 19 safe_browsing_service->RegisterDelayedAnalysisCallback(
20 base::Bind(&VerifyBlacklistLoadState)); 20 base::Bind(&VerifyBlacklistLoadState));
21 #endif 21 #endif
22 } 22 }
23 23
24 #if !defined(OS_WIN) 24 #if !defined(OS_WIN)
25 void VerifyBlacklistLoadState(scoped_ptr<IncidentReceiver> incident_receiver) { 25 void VerifyBlacklistLoadState(
26 } 26 std::unique_ptr<IncidentReceiver> incident_receiver) {}
27 27
28 bool GetLoadedBlacklistedModules(std::vector<base::string16>* module_names) { 28 bool GetLoadedBlacklistedModules(std::vector<base::string16>* module_names) {
29 return false; 29 return false;
30 } 30 }
31 #endif // !defined(OS_WIN) 31 #endif // !defined(OS_WIN)
32 32
33 } // namespace safe_browsing 33 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698