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

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

Issue 666813002: GN: Fix Android component build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-clank
Patch Set: Actually undo gyp change 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 (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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 SafeBrowsingDatabaseManager* SafeBrowsingService::CreateDatabaseManager() { 355 SafeBrowsingDatabaseManager* SafeBrowsingService::CreateDatabaseManager() {
356 #if defined(FULL_SAFE_BROWSING) 356 #if defined(FULL_SAFE_BROWSING)
357 return new SafeBrowsingDatabaseManager(this); 357 return new SafeBrowsingDatabaseManager(this);
358 #else 358 #else
359 return NULL; 359 return NULL;
360 #endif 360 #endif
361 } 361 }
362 362
363 void SafeBrowsingService::RegisterAllDelayedAnalysis() { 363 void SafeBrowsingService::RegisterAllDelayedAnalysis() {
364 #if defined(FULL_SAFE_BROWSING)
jamesr 2014/10/22 00:28:18 i don't really understand this - could you get a c
cjhopman 2014/10/23 00:15:48 Acknowledged.
364 safe_browsing::RegisterBinaryIntegrityAnalysis(); 365 safe_browsing::RegisterBinaryIntegrityAnalysis();
365 safe_browsing::RegisterBlacklistLoadAnalysis(); 366 safe_browsing::RegisterBlacklistLoadAnalysis();
366 safe_browsing::RegisterVariationsSeedSignatureAnalysis(); 367 safe_browsing::RegisterVariationsSeedSignatureAnalysis();
368 #else
369 NOTREACHED();
370 #endif
367 } 371 }
368 372
369 void SafeBrowsingService::InitURLRequestContextOnIOThread( 373 void SafeBrowsingService::InitURLRequestContextOnIOThread(
370 net::URLRequestContextGetter* system_url_request_context_getter) { 374 net::URLRequestContextGetter* system_url_request_context_getter) {
371 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 375 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
372 DCHECK(!url_request_context_.get()); 376 DCHECK(!url_request_context_.get());
373 377
374 scoped_refptr<net::CookieStore> cookie_store( 378 scoped_refptr<net::CookieStore> cookie_store(
375 content::CreateCookieStore( 379 content::CreateCookieStore(
376 content::CookieStoreConfig( 380 content::CookieStoreConfig(
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 else 563 else
560 Stop(false); 564 Stop(false);
561 565
562 #if defined(FULL_SAFE_BROWSING) 566 #if defined(FULL_SAFE_BROWSING)
563 if (csd_service_) 567 if (csd_service_)
564 csd_service_->SetEnabledAndRefreshState(enable); 568 csd_service_->SetEnabledAndRefreshState(enable);
565 if (download_service_) 569 if (download_service_)
566 download_service_->SetEnabled(enable); 570 download_service_->SetEnabled(enable);
567 #endif 571 #endif
568 } 572 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698