summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-05-20 21:43:40 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-21 04:44:23 +0000
commit74a2a34fce36365a04a50f6b781187b17ae71b73 (patch)
tree65b8316ef7ff70ed297811cc2b6d5158481d2339
parent8f279b4c8ad2374ba272f4c3a3446495fbfabc86 (diff)
downloadchromium_src-74a2a34fce36365a04a50f6b781187b17ae71b73.zip
chromium_src-74a2a34fce36365a04a50f6b781187b17ae71b73.tar.gz
chromium_src-74a2a34fce36365a04a50f6b781187b17ae71b73.tar.bz2
Remove dependency on resources from installer_util
chrome/installer/util used to depend on chrome:resources but was apparently never used. This causes a problem because chrome_watcher.dll depends on installer_util, and chrome:resources depends on the omnibox mojo target. To get this dependency "right" we would have to link all of mojo system into chrome_watcher.dll. It is properly dead-code stripped (I checked) but this still seems undesirable. I removed the dependency and also made //chrome/installer/* "gn check" clean. There were some other unnecessary deps and header file uses. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg Review URL: https://codereview.chromium.org/1148173002 Cr-Commit-Position: refs/heads/master@{#330895}
-rw-r--r--.gn1
-rw-r--r--chrome/chrome_installer_util.gypi1
-rw-r--r--chrome/common/BUILD.gn20
-rw-r--r--chrome/installer/test/BUILD.gn1
-rw-r--r--chrome/installer/util/BUILD.gn6
-rw-r--r--chrome/installer/util/DEPS4
-rw-r--r--chrome/installer/util/auto_launch_util.cc1
-rw-r--r--chrome/installer/util/google_chrome_distribution.cc1
-rw-r--r--chrome/installer/util/user_experiment.cc3
-rw-r--r--content/public/common/BUILD.gn8
10 files changed, 33 insertions, 13 deletions
diff --git a/.gn b/.gn
index 96ecd79..ee62553 100644
--- a/.gn
+++ b/.gn
@@ -24,6 +24,7 @@ check_targets = [
"//cc/*",
#"//chrome/*", # Epic number of errors.
+ "//chrome/installer/*",
"//chromecast/*",
# TODO(brettw): Fix http://crbug.com/460828 and uncomment the following
diff --git a/chrome/chrome_installer_util.gypi b/chrome/chrome_installer_util.gypi
index ba1698b..755eeef 100644
--- a/chrome/chrome_installer_util.gypi
+++ b/chrome/chrome_installer_util.gypi
@@ -117,7 +117,6 @@
'installer_util_strings',
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
'<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
'<(DEPTH)/chrome/common_constants.gyp:common_constants',
'<(DEPTH)/components/components.gyp:metrics',
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn
index b388175..751349dd 100644
--- a/chrome/common/BUILD.gn
+++ b/chrome/common/BUILD.gn
@@ -42,6 +42,11 @@ static_library("common") {
configs += [ "//build/config/compiler:wexit_time_destructors" ]
+ public_deps = [
+ "//chrome/common:constants",
+ "//chrome/common/net",
+ "//chrome/common/safe_browsing:proto",
+ ]
deps = [
":version",
"//base:base",
@@ -51,9 +56,6 @@ static_library("common") {
"//chrome:resources",
"//chrome:strings",
"//chrome/app/theme:theme_resources",
- "//chrome/common:constants",
- "//chrome/common/net",
- "//chrome/common/safe_browsing:proto",
"//chrome/installer/util",
"//components/cloud_devices/common",
"//components/component_updater",
@@ -97,9 +99,7 @@ static_library("common") {
"//third_party/re2",
"//third_party/widevine/cdm:version_h",
]
- public_deps = [
- "//third_party/mojo/src/mojo/public/cpp/bindings",
- ]
+ public_deps += [ "//third_party/mojo/src/mojo/public/cpp/bindings" ]
}
if (enable_extensions) {
@@ -247,6 +247,14 @@ static_library("common") {
}
}
+# This target allows other targets to depend on result_codes.h which is a
+# header-only dependency, without bringing in all of content.
+source_set("result_codes") {
+ sources = [
+ "chrome_result_codes.h",
+ ]
+}
+
import("//chrome/version.gni")
process_version("version") {
visibility = [ ":common" ]
diff --git a/chrome/installer/test/BUILD.gn b/chrome/installer/test/BUILD.gn
index ac4ef59..97c3c66 100644
--- a/chrome/installer/test/BUILD.gn
+++ b/chrome/installer/test/BUILD.gn
@@ -36,6 +36,7 @@ source_set("alternate_version_generator_lib") {
]
deps = [
"//base",
+ "//base:base_static",
"//chrome/installer/util",
"//chrome/common:constants",
]
diff --git a/chrome/installer/util/BUILD.gn b/chrome/installer/util/BUILD.gn
index 3e7da02..fe40610 100644
--- a/chrome/installer/util/BUILD.gn
+++ b/chrome/installer/util/BUILD.gn
@@ -8,8 +8,10 @@ import("//testing/test.gni")
static_library("util") {
deps = [
"//base",
- "//chrome:resources",
"//chrome:strings",
+ "//chrome/common:constants",
+ "//chrome/common:result_codes",
+ "//content/public/common:result_codes",
]
if (is_win) {
@@ -58,7 +60,6 @@ static_library("util") {
deps += [
":strings",
"//base/third_party/dynamic_annotations",
- "//chrome/common:constants",
"//components/metrics",
"//courgette:courgette_lib",
"//crypto",
@@ -261,6 +262,7 @@ if (is_win) {
"//base:i18n",
"//base/test:test_support",
"//chrome:other_version",
+ "//chrome/common",
"//chrome/installer/test:alternate_version_generator_lib",
"//content/public/common",
"//testing/gmock",
diff --git a/chrome/installer/util/DEPS b/chrome/installer/util/DEPS
index 0148070..2f05ced 100644
--- a/chrome/installer/util/DEPS
+++ b/chrome/installer/util/DEPS
@@ -1,3 +1,7 @@
include_rules = [
+ # This file is generated but otherwise would be excluded because of the
+ # "-chrome" rule in a parent dir.
+ "+chrome/grit/chromium_strings.h",
+
"+components/metrics/client_info.h",
]
diff --git a/chrome/installer/util/auto_launch_util.cc b/chrome/installer/util/auto_launch_util.cc
index 5e797ba..2c1081a 100644
--- a/chrome/installer/util/auto_launch_util.cc
+++ b/chrome/installer/util/auto_launch_util.cc
@@ -14,7 +14,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/chrome_version_info.h"
#include "chrome/installer/util/util_constants.h"
#include "crypto/sha2.h"
diff --git a/chrome/installer/util/google_chrome_distribution.cc b/chrome/installer/util/google_chrome_distribution.cc
index ff32f5854..22150a6 100644
--- a/chrome/installer/util/google_chrome_distribution.cc
+++ b/chrome/installer/util/google_chrome_distribution.cc
@@ -31,7 +31,6 @@
#include "chrome/installer/util/updating_app_registration_data.h"
#include "chrome/installer/util/util_constants.h"
#include "chrome/installer/util/wmi.h"
-#include "content/public/common/result_codes.h"
namespace {
diff --git a/chrome/installer/util/user_experiment.cc b/chrome/installer/util/user_experiment.cc
index a5f6e2e..d8ce4dd 100644
--- a/chrome/installer/util/user_experiment.cc
+++ b/chrome/installer/util/user_experiment.cc
@@ -20,10 +20,10 @@
#include "base/strings/utf_string_conversions.h"
#include "base/win/scoped_handle.h"
#include "base/win/windows_version.h"
-#include "chrome/common/attrition_experiments.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_result_codes.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/grit/chromium_strings.h"
#include "chrome/installer/util/browser_distribution.h"
#include "chrome/installer/util/google_update_constants.h"
#include "chrome/installer/util/google_update_settings.h"
@@ -306,7 +306,6 @@ bool CreateExperimentDetails(int flavor, ExperimentDetails* experiment) {
// The experiment in Feb 2011 used SJxx SKxx SLxx SMxx.
// The experiment in Mar 2012 used ZAxx ZBxx ZCxx.
// The experiment in Jan 2013 uses DAxx.
- using namespace attrition_experiments;
static const struct UserExperimentSpecs {
const wchar_t* locale; // Locale to show this experiment for (* for all).
diff --git a/content/public/common/BUILD.gn b/content/public/common/BUILD.gn
index 51772e3..19b0c80 100644
--- a/content/public/common/BUILD.gn
+++ b/content/public/common/BUILD.gn
@@ -19,6 +19,14 @@ group("common") {
}
}
+# This target allows other targets to depend on result_codes.h which is a
+# header-only dependency, without bringing in all of content.
+source_set("result_codes") {
+ sources = [
+ "result_codes.h",
+ ]
+}
+
source_set("common_sources") {
visibility = [ "//content/*" ]