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

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

Issue 1613483003: [SafeBrowsing] Alternate extensions should also be subject to block list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment in histograms.xml Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/unverified_download_field_trial.h" 5 #include "chrome/browser/safe_browsing/unverified_download_field_trial.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/metrics/histogram.h"
11 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
12 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
14 #include "build/build_config.h" 13 #include "build/build_config.h"
15 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/safe_browsing/download_protection_util.h" 15 #include "chrome/common/safe_browsing/download_protection_util.h"
17 #include "components/variations/variations_associated_data.h" 16 #include "components/variations/variations_associated_data.h"
18 17
19 namespace safe_browsing { 18 namespace safe_browsing {
20 19
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 if (parameters.count(kUnverifiedDownloadFieldTrialBlockSBTypesParam) && 93 if (parameters.count(kUnverifiedDownloadFieldTrialBlockSBTypesParam) &&
95 !parameters[kUnverifiedDownloadFieldTrialBlockSBTypesParam].empty() && 94 !parameters[kUnverifiedDownloadFieldTrialBlockSBTypesParam].empty() &&
96 download_protection_util::IsSupportedBinaryFile(file)) 95 download_protection_util::IsSupportedBinaryFile(file))
97 return false; 96 return false;
98 } 97 }
99 98
100 return true; 99 return true;
101 } 100 }
102 101
103 } // namespace safe_browsing 102 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/file_select_helper.cc ('k') | chrome/browser/safe_browsing/unverified_download_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698