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 = [
"//cc/*",
#"//chrome/*", # Epic number of errors.
"//chrome/installer/*",
"//chromecast/*",
# TODO(brettw): Fix http://crbug.com/460828 and uncomment the following
......
......@@ -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',
......
......@@ -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" ]
......
......@@ -36,6 +36,7 @@ source_set("alternate_version_generator_lib") {
]
deps = [
"//base",
"//base:base_static",
"//chrome/installer/util",
"//chrome/common:constants",
]
......
......@@ -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",
......
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",
]
......@@ -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"
......
......@@ -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 {
......
......@@ -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).
......
......@@ -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/*" ]
......
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