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

Side by Side Diff: chrome/browser/resources/safe_browsing/BUILD.gn

Issue 1911883002: Revert "Re-land: Add download_file_types.proto with ascii->binary conversion, as a resource." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/safe_browsing/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # Generate the binary proto form of "file_types" from the ascii proto.
6 action("make_file_types_protobuf") {
7 script = "gen_file_type_proto.py"
8
9 # The output goes in $target_gen_dir since that's where
10 # chrome/browser/browser_resources.grd will look for it.
11
12 input_filename = "download_file_types.asciipb"
13 output_filename = "$target_gen_dir/download_file_types.pb"
14 python_path_root = "$root_build_dir/pyproto"
15 python_path_safe_browsing = "$python_path_root/chrome/common/safe_browsing"
16
17 inputs = [
18 script,
19 input_filename,
20 ]
21
22 # This script requires the generated python proto code
23 deps = [
24 "//chrome/common/safe_browsing:proto",
25 "//third_party/protobuf:py_proto",
26 ]
27
28 outputs = [
29 output_filename,
30 ]
31
32 args = [
33 "-i",
34 rebase_path(input_filename, root_build_dir),
35 "-o",
36 rebase_path(output_filename, root_build_dir),
37 "-p",
38 rebase_path(python_path_root, root_build_dir),
39 "-p",
40 rebase_path(python_path_safe_browsing, root_build_dir),
41 ]
42 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/safe_browsing/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698