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

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

Issue 8586011: - Flip the flag for improved SafeBrowsing downoad protection. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address Matt's comment. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 1342
1343 if (enable) 1343 if (enable)
1344 Start(); 1344 Start();
1345 else 1345 else
1346 Stop(); 1346 Stop();
1347 1347
1348 if (csd_service_.get()) 1348 if (csd_service_.get())
1349 csd_service_->SetEnabledAndRefreshState(enable); 1349 csd_service_->SetEnabledAndRefreshState(enable);
1350 if (download_service_.get()) { 1350 if (download_service_.get()) {
1351 download_service_->SetEnabled( 1351 download_service_->SetEnabled(
1352 enable && CommandLine::ForCurrentProcess()->HasSwitch( 1352 enable && !CommandLine::ForCurrentProcess()->HasSwitch(
1353 switches::kEnableImprovedDownloadProtection)); 1353 switches::kDisableImprovedDownloadProtection));
1354 } 1354 }
1355 } 1355 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/download_protection_service_unittest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698