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

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

Issue 800263002: Added incident report for variations seed signature mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: analyze on UI thread to access variations service 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
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 <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 #if defined(OS_WIN) 50 #if defined(OS_WIN)
51 #include "chrome/installer/util/browser_distribution.h" 51 #include "chrome/installer/util/browser_distribution.h"
52 #endif 52 #endif
53 53
54 #if defined(FULL_SAFE_BROWSING) 54 #if defined(FULL_SAFE_BROWSING)
55 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy zer.h" 55 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy zer.h"
56 #include "chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyze r.h" 56 #include "chrome/browser/safe_browsing/incident_reporting/blacklist_load_analyze r.h"
57 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser vice.h" 57 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser vice.h"
58 #include "chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_d etector.h" 58 #include "chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_d etector.h"
59 #include "chrome/browser/safe_browsing/incident_reporting/variations_seed_signat ure_analyzer.h"
59 #endif 60 #endif
60 61
61 using content::BrowserThread; 62 using content::BrowserThread;
62 63
63 namespace { 64 namespace {
64 65
65 // Filename suffix for the cookie database. 66 // Filename suffix for the cookie database.
66 const base::FilePath::CharType kCookiesFile[] = FILE_PATH_LITERAL(" Cookies"); 67 const base::FilePath::CharType kCookiesFile[] = FILE_PATH_LITERAL(" Cookies");
67 68
68 // The default URL prefix where browser fetches chunk updates, hashes, 69 // The default URL prefix where browser fetches chunk updates, hashes,
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 return new SafeBrowsingDatabaseManager(this); 371 return new SafeBrowsingDatabaseManager(this);
371 #else 372 #else
372 return NULL; 373 return NULL;
373 #endif 374 #endif
374 } 375 }
375 376
376 void SafeBrowsingService::RegisterAllDelayedAnalysis() { 377 void SafeBrowsingService::RegisterAllDelayedAnalysis() {
377 #if defined(FULL_SAFE_BROWSING) 378 #if defined(FULL_SAFE_BROWSING)
378 safe_browsing::RegisterBinaryIntegrityAnalysis(); 379 safe_browsing::RegisterBinaryIntegrityAnalysis();
379 safe_browsing::RegisterBlacklistLoadAnalysis(); 380 safe_browsing::RegisterBlacklistLoadAnalysis();
381 safe_browsing::RegisterVariationsSeedSignatureAnalysis();
380 #else 382 #else
381 NOTREACHED(); 383 NOTREACHED();
382 #endif 384 #endif
383 } 385 }
384 386
385 void SafeBrowsingService::InitURLRequestContextOnIOThread( 387 void SafeBrowsingService::InitURLRequestContextOnIOThread(
386 net::URLRequestContextGetter* system_url_request_context_getter) { 388 net::URLRequestContextGetter* system_url_request_context_getter) {
387 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 389 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
388 DCHECK(!url_request_context_.get()); 390 DCHECK(!url_request_context_.get());
389 391
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 else 577 else
576 Stop(false); 578 Stop(false);
577 579
578 #if defined(FULL_SAFE_BROWSING) 580 #if defined(FULL_SAFE_BROWSING)
579 if (csd_service_) 581 if (csd_service_)
580 csd_service_->SetEnabledAndRefreshState(enable); 582 csd_service_->SetEnabledAndRefreshState(enable);
581 if (download_service_) 583 if (download_service_)
582 download_service_->SetEnabled(enable); 584 download_service_->SetEnabled(enable);
583 #endif 585 #endif
584 } 586 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698