GN Templates: Move common_inherited_config to the template.

Remove common_inherited_config from the targets and add it to the
template instead.

BUG=webrtc:6187
NOTRY=True

Review-Url: https://codereview.webrtc.org/2311843002
Cr-Commit-Position: refs/heads/master@{#14069}
diff --git a/webrtc/media/BUILD.gn b/webrtc/media/BUILD.gn
index e3b6843..029d143 100644
--- a/webrtc/media/BUILD.gn
+++ b/webrtc/media/BUILD.gn
@@ -119,8 +119,6 @@
 
   configs += [ ":rtc_media_warnings_config" ]
 
-  public_configs = [ "..:common_inherited_config" ]
-
   if (is_clang) {
     # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
     suppressed_configs += [
@@ -163,6 +161,7 @@
     deps += [ "//third_party/usrsctp" ]
   }
 
+  public_configs = []
   if (build_with_chromium) {
     deps += [ "../modules/video_capture:video_capture" ]
   } else {
@@ -248,7 +247,6 @@
     ]
 
     configs += [ ":rtc_unittest_main_config" ]
-    public_configs = [ "..:common_inherited_config" ]
 
     if (rtc_build_libyuv) {
       deps += [ "$rtc_libyuv_dir" ]
@@ -344,7 +342,6 @@
     ]
 
     configs += [ ":rtc_media_unittests_config" ]
-    public_configs = [ "..:common_inherited_config" ]
 
     if (rtc_use_h264) {
       defines += [ "WEBRTC_USE_H264" ]