summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/DEPS14
-rw-r--r--content/browser/geolocation/DEPS4
-rw-r--r--content/browser/speech/DEPS1
3 files changed, 17 insertions, 2 deletions
diff --git a/content/DEPS b/content/DEPS
index 0362df1..e615c72f 100644
--- a/content/DEPS
+++ b/content/DEPS
@@ -15,8 +15,6 @@ include_rules = [
"+content/shell", # for content_browsertests
"+content/test",
- "+google_apis",
-
"+grit/content_resources.h",
"+grit/ui_resources.h",
"+grit/webkit_chromium_resources.h",
@@ -31,6 +29,18 @@ include_rules = [
"+sandbox",
"+skia",
+ # In general, content/ should not rely on google_apis, since URLs
+ # and access tokens should usually be provided by the
+ # embedder.
+ #
+ # There are a couple of specific parts of content that are excepted
+ # from this rule, see content/browser/speech/DEPS and
+ # content/browser/geolocation/DEPS. Both of these are cases of
+ # implementations that are strongly tied to Google servers, i.e. we
+ # don't expect alternate implementations to be provided by the
+ # embedder.
+ "-google_apis",
+
# Don't allow inclusion of these other libs we shouldn't be calling directly.
"-v8",
"-tools",
diff --git a/content/browser/geolocation/DEPS b/content/browser/geolocation/DEPS
new file mode 100644
index 0000000..9f09a70
--- /dev/null
+++ b/content/browser/geolocation/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+ "+google_apis", # Exception to general rule, see content/DEPS for details.
+]
+
diff --git a/content/browser/speech/DEPS b/content/browser/speech/DEPS
index 8fac8f4..b0e678d 100644
--- a/content/browser/speech/DEPS
+++ b/content/browser/speech/DEPS
@@ -1,3 +1,4 @@
include_rules = [
+ "+google_apis", # Exception to general rule, see content/DEPS for details.
"+media/audio", # For audio input.
]