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

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

Issue 646733002: Added incident report for variations seed signature mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor styling fixes. Created 6 years, 2 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/finch_config_signature _analyzer.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/metrics/variations/variations_service.h"
8 #include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback. h" 9 #include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback. h"
9 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 10 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
10 11
11 namespace safe_browsing { 12 namespace safe_browsing {
12 13
13 void RegisterBlacklistLoadAnalysis() { 14 void RegisterFinchConfigSignatureAnalysis() {
14 #if defined(OS_WIN)
15 scoped_refptr<SafeBrowsingService> safe_browsing_service( 15 scoped_refptr<SafeBrowsingService> safe_browsing_service(
16 g_browser_process->safe_browsing_service()); 16 g_browser_process->safe_browsing_service());
17 17
18 safe_browsing_service->RegisterDelayedAnalysisCallback( 18 safe_browsing_service->RegisterDelayedAnalysisCallback(base::Bind(
19 base::Bind(&VerifyBlacklistLoadState)); 19 &chrome_variations::VariationsService::OnDelayedSendIncidentReport,
20 #endif 20 base::Unretained(g_browser_process->variations_service())));
grt (UTC plus 2) 2014/10/10 17:45:42 make OnDelayedSendIncidentReport a free function i
Georges Khalil 2014/10/10 20:19:32 Done.
21 } 21 }
22 22
23 #if !defined(OS_WIN)
24 void VerifyBlacklistLoadState(const AddIncidentCallback& callback) {
25 }
26
27 bool GetLoadedBlacklistedModules(std::vector<base::string16>* module_names) {
28 return false;
29 }
30 #endif // !defined(OS_WIN)
31
32 } // namespace safe_browsing 23 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698