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

Unified Diff: chrome/chrome_resources.gyp

Issue 1929693003: Populate download_file_types proto and filter it for each platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@file_type_polices2
Patch Set: rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/chrome_resources.gyp
diff --git a/chrome/chrome_resources.gyp b/chrome/chrome_resources.gyp
index 531ca6721b2c96e8342ec730e0c08f952bd5b883..f2c75eb400bad387e3a06da13b3d8003336bd679 100644
--- a/chrome/chrome_resources.gyp
+++ b/chrome/chrome_resources.gyp
@@ -314,6 +314,13 @@
'script_file':'browser/resources/safe_browsing/gen_file_type_proto.py',
'asciipb_file' : 'browser/resources/safe_browsing/download_file_types.asciipb',
'output_file' : '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/safe_browsing/download_file_types.pb',
+ 'conditions': [
+ ['OS=="android"', { 'platform': 'android' },],
+ ['desktop_linux==1', { 'platform': 'linux' },],
+ ['chromeos==1', { 'platform': 'chromeos' },],
+ ['OS=="mac"', { 'platform': 'mac' },],
+ ['OS=="win"', { 'platform': 'win' },],
+ ],
},
'inputs': [
'<(script_file)',
@@ -328,6 +335,7 @@
'-w',
'-i', '<(asciipb_file)',
'-o', '<(output_file)',
+ '-t', '<(platform)',
'-p', '<(PRODUCT_DIR)/pyproto',
'-p', '<(PRODUCT_DIR)/pyproto/chrome/common/safe_browsing',
],

Powered by Google App Engine
This is Rietveld 408576698