Commit 74a2a34f authored by brettw's avatar brettw Committed by Commit bot

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}
parent 8f279b4c
...@@ -24,6 +24,7 @@ check_targets = [ ...@@ -24,6 +24,7 @@ check_targets = [
"//cc/*", "//cc/*",
#"//chrome/*", # Epic number of errors. #"//chrome/*", # Epic number of errors.
"//chrome/installer/*",
"//chromecast/*", "//chromecast/*",
# TODO(brettw): Fix http://crbug.com/460828 and uncomment the following # TODO(brettw): Fix http://crbug.com/460828 and uncomment the following
......
...@@ -117,7 +117,6 @@ ...@@ -117,7 +117,6 @@
'installer_util_strings', 'installer_util_strings',
'<(DEPTH)/base/base.gyp:base', '<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '<(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/chrome_resources.gyp:chrome_strings',
'<(DEPTH)/chrome/common_constants.gyp:common_constants', '<(DEPTH)/chrome/common_constants.gyp:common_constants',
'<(DEPTH)/components/components.gyp:metrics', '<(DEPTH)/components/components.gyp:metrics',
......
...@@ -42,6 +42,11 @@ static_library("common") { ...@@ -42,6 +42,11 @@ static_library("common") {
configs += [ "//build/config/compiler:wexit_time_destructors" ] configs += [ "//build/config/compiler:wexit_time_destructors" ]
public_deps = [
"//chrome/common:constants",
"//chrome/common/net",
"//chrome/common/safe_browsing:proto",
]
deps = [ deps = [
":version", ":version",
"//base:base", "//base:base",
...@@ -51,9 +56,6 @@ static_library("common") { ...@@ -51,9 +56,6 @@ static_library("common") {
"//chrome:resources", "//chrome:resources",
"//chrome:strings", "//chrome:strings",
"//chrome/app/theme:theme_resources", "//chrome/app/theme:theme_resources",
"//chrome/common:constants",
"//chrome/common/net",
"//chrome/common/safe_browsing:proto",
"//chrome/installer/util", "//chrome/installer/util",
"//components/cloud_devices/common", "//components/cloud_devices/common",
"//components/component_updater", "//components/component_updater",
...@@ -97,9 +99,7 @@ static_library("common") { ...@@ -97,9 +99,7 @@ static_library("common") {
"//third_party/re2", "//third_party/re2",
"//third_party/widevine/cdm:version_h", "//third_party/widevine/cdm:version_h",
] ]
public_deps = [ public_deps += [ "//third_party/mojo/src/mojo/public/cpp/bindings" ]
"//third_party/mojo/src/mojo/public/cpp/bindings",
]
} }
if (enable_extensions) { if (enable_extensions) {
...@@ -247,6 +247,14 @@ static_library("common") { ...@@ -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") import("//chrome/version.gni")
process_version("version") { process_version("version") {
visibility = [ ":common" ] visibility = [ ":common" ]
......
...@@ -36,6 +36,7 @@ source_set("alternate_version_generator_lib") { ...@@ -36,6 +36,7 @@ source_set("alternate_version_generator_lib") {
] ]
deps = [ deps = [
"//base", "//base",
"//base:base_static",
"//chrome/installer/util", "//chrome/installer/util",
"//chrome/common:constants", "//chrome/common:constants",
] ]
......
...@@ -8,8 +8,10 @@ import("//testing/test.gni") ...@@ -8,8 +8,10 @@ import("//testing/test.gni")
static_library("util") { static_library("util") {
deps = [ deps = [
"//base", "//base",
"//chrome:resources",
"//chrome:strings", "//chrome:strings",
"//chrome/common:constants",
"//chrome/common:result_codes",
"//content/public/common:result_codes",
] ]
if (is_win) { if (is_win) {
...@@ -58,7 +60,6 @@ static_library("util") { ...@@ -58,7 +60,6 @@ static_library("util") {
deps += [ deps += [
":strings", ":strings",
"//base/third_party/dynamic_annotations", "//base/third_party/dynamic_annotations",
"//chrome/common:constants",
"//components/metrics", "//components/metrics",
"//courgette:courgette_lib", "//courgette:courgette_lib",
"//crypto", "//crypto",
...@@ -261,6 +262,7 @@ if (is_win) { ...@@ -261,6 +262,7 @@ if (is_win) {
"//base:i18n", "//base:i18n",
"//base/test:test_support", "//base/test:test_support",
"//chrome:other_version", "//chrome:other_version",
"//chrome/common",
"//chrome/installer/test:alternate_version_generator_lib", "//chrome/installer/test:alternate_version_generator_lib",
"//content/public/common", "//content/public/common",
"//testing/gmock", "//testing/gmock",
......
include_rules = [ 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", "+components/metrics/client_info.h",
] ]
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h" #include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/installer/util/util_constants.h" #include "chrome/installer/util/util_constants.h"
#include "crypto/sha2.h" #include "crypto/sha2.h"
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "chrome/installer/util/updating_app_registration_data.h" #include "chrome/installer/util/updating_app_registration_data.h"
#include "chrome/installer/util/util_constants.h" #include "chrome/installer/util/util_constants.h"
#include "chrome/installer/util/wmi.h" #include "chrome/installer/util/wmi.h"
#include "content/public/common/result_codes.h"
namespace { namespace {
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/win/scoped_handle.h" #include "base/win/scoped_handle.h"
#include "base/win/windows_version.h" #include "base/win/windows_version.h"
#include "chrome/common/attrition_experiments.h"
#include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_result_codes.h" #include "chrome/common/chrome_result_codes.h"
#include "chrome/common/chrome_switches.h" #include "chrome/common/chrome_switches.h"
#include "chrome/grit/chromium_strings.h"
#include "chrome/installer/util/browser_distribution.h" #include "chrome/installer/util/browser_distribution.h"
#include "chrome/installer/util/google_update_constants.h" #include "chrome/installer/util/google_update_constants.h"
#include "chrome/installer/util/google_update_settings.h" #include "chrome/installer/util/google_update_settings.h"
...@@ -306,7 +306,6 @@ bool CreateExperimentDetails(int flavor, ExperimentDetails* experiment) { ...@@ -306,7 +306,6 @@ bool CreateExperimentDetails(int flavor, ExperimentDetails* experiment) {
// The experiment in Feb 2011 used SJxx SKxx SLxx SMxx. // The experiment in Feb 2011 used SJxx SKxx SLxx SMxx.
// The experiment in Mar 2012 used ZAxx ZBxx ZCxx. // The experiment in Mar 2012 used ZAxx ZBxx ZCxx.
// The experiment in Jan 2013 uses DAxx. // The experiment in Jan 2013 uses DAxx.
using namespace attrition_experiments;
static const struct UserExperimentSpecs { static const struct UserExperimentSpecs {
const wchar_t* locale; // Locale to show this experiment for (* for all). const wchar_t* locale; // Locale to show this experiment for (* for all).
......
...@@ -19,6 +19,14 @@ group("common") { ...@@ -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") { source_set("common_sources") {
visibility = [ "//content/*" ] visibility = [ "//content/*" ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment