Break dependency of chrome.gyp:common on content.gyp:content_browser.
The dependency path is
src/chrome/chrome.gyp:common ->
src/components/components.gyp:policy_component ->
src/components/components.gyp:user_prefs ->
src/content/content.gyp:content_browser
This was introduced in https://codereview.chromium.org/102973005. The issue is
that URLBlacklistManager::RegisterProfilePrefs() uses a PrefServiceSyncable
which comes from user_prefs, and user_prefs depends on content::BrowserContext.
This fix splits the policy/common files into a policy_component_common target
that does not depend on user_prefs. chrome.gyp:common now depends on
policy_component_common, and chrome.gyp:browser depends on policy_component.
BUG=332030
Review URL: https://codereview.chromium.org/124393003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243567 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: f522afaa8b6ff706b91c10e0680f4ceae9fd1a5e
3 files changed