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

Side by Side Diff: extensions/utility/extension_extractor_filter.cc

Issue 2321823002: Exclude exe files while unzipping CRXes (Closed)
Patch Set: Fix build Created 4 years, 3 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "extensions/utility/extension_extractor_filter.h"
6
7 #include "base/files/file_path.h"
8 #include "base/macros.h"
9
10 namespace extensions {
11
12 bool ExtensionExtractorFilter::ShouldExtractFile(
13 const base::FilePath& file_path) {
14 return file_path.Extension() != FILE_PATH_LITERAL(".exe");
Devlin 2016/09/08 21:10:16 Should this be FinalExtension()?
meacer 2016/09/08 22:40:10 Extension() and FinalExtension() seems to differ o
15 }
16
17 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698