OLD | NEW |
1 include_rules = [ | 1 include_rules = [ |
2 # Do not add Chrome dependencies. Much work went into removing them. | 2 # Do not add Chrome dependencies. Much work went into removing them. |
3 "+components/crx_file", | 3 "+components/crx_file", |
4 "+components/url_matcher", | 4 "+components/url_matcher", |
5 "-content", | 5 "-content", |
6 "+content/grit/content_resources.h", | 6 "+content/grit/content_resources.h", |
7 "+content/public/common", | 7 "+content/public/common", |
8 "+content/public/test", | 8 "+content/public/test", |
9 "+crypto", | 9 "+crypto", |
10 "-extensions/components", | 10 "-extensions/components", |
11 "+extensions/test", | 11 "+extensions/test", |
12 "+grit/extensions_renderer_resources.h", | 12 "+grit/extensions_renderer_resources.h", |
13 "+grit/extensions_resources.h", | 13 "+grit/extensions_resources.h", |
14 "+mojo/public", | 14 "+mojo/public", |
15 "+testing", | 15 "+testing", |
16 "+ui", | 16 |
| 17 # Minimal UI dependencies. There are two good rules for UI dependencies here: |
| 18 # |
| 19 # 1) UI components should only be added as they are needed, and |
| 20 # 2) if //content doesn't allow it, //extensions probably won't allow it. |
| 21 # (see for example ui/views) |
| 22 "-ui", |
| 23 "+ui/base", |
| 24 "+ui/gfx", |
| 25 "+ui/events", |
17 | 26 |
18 # NOTE: Please do not add includes without talking to the app shell team; | 27 # NOTE: Please do not add includes without talking to the app shell team; |
19 # see OWNERS for this directory. | 28 # see OWNERS for this directory. |
20 ] | 29 ] |
21 | 30 |
22 specific_include_rules = { | 31 specific_include_rules = { |
23 ".*(test|test_util)\.(cc|h)$": [ | 32 ".*(test|test_util)\.(cc|h)$": [ |
24 "+content/public/test", | 33 "+content/public/test", |
25 | 34 |
26 # Temporarily allowed testing includes. See above. | 35 # Temporarily allowed testing includes. See above. |
(...skipping 10 matching lines...) Expand all Loading... |
37 "+chrome/browser/extensions/test_extension_dir.h", | 46 "+chrome/browser/extensions/test_extension_dir.h", |
38 "+chrome/browser/extensions/test_extension_prefs.h", | 47 "+chrome/browser/extensions/test_extension_prefs.h", |
39 "+chrome/browser/extensions/test_extension_system.h", | 48 "+chrome/browser/extensions/test_extension_system.h", |
40 "+chrome/browser/ui/browser.h", | 49 "+chrome/browser/ui/browser.h", |
41 "+chrome/common/chrome_paths.h", | 50 "+chrome/common/chrome_paths.h", |
42 "+chrome/common/extensions/features/feature_channel.h", | 51 "+chrome/common/extensions/features/feature_channel.h", |
43 "+chrome/test/base/testing_profile.h", | 52 "+chrome/test/base/testing_profile.h", |
44 "+chrome/test/base/ui_test_utils.h", | 53 "+chrome/test/base/ui_test_utils.h", |
45 ], | 54 ], |
46 } | 55 } |
OLD | NEW |