Skip to content

Commit

Permalink
[headless] Moved headless_pref_names to /h/l/b/policy
Browse files Browse the repository at this point in the history
Headless pref names are only referred to from headless policy code so
it's convenient to have it all in the same directory.

This is anticipation of the larger change when some of the headless
policy code will be moved to a shared location.

Bug: 1410582
Change-Id: Id4982b7bbd87295efa82a16aea6de2ef5b26b3f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4198467
Commit-Queue: Peter Kvitek <kvitekp@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1097748}
  • Loading branch information
Peter Kvitek authored and Chromium LUCI CQ committed Jan 27, 2023
1 parent a0a0f97 commit 4d2821d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions headless/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,14 @@ component("headless_non_renderer") {

if (headless_use_policy) {
sources += [
"lib/browser/headless_pref_names.cc",
"lib/browser/headless_pref_names.h",
"lib/browser/policy/headless_browser_policy_connector.cc",
"lib/browser/policy/headless_browser_policy_connector.h",
"lib/browser/policy/headless_mode_policy.cc",
"lib/browser/policy/headless_mode_policy.h",
"lib/browser/policy/headless_policies.cc",
"lib/browser/policy/headless_policies.h",
"lib/browser/policy/headless_pref_names.cc",
"lib/browser/policy/headless_pref_names.h",
]
deps += [
"//components/policy/content",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#include "components/policy/core/common/async_policy_provider.h" // nogncheck http://crbug.com/1227148
#include "components/policy/core/common/policy_pref_names.h"
#include "components/policy/policy_constants.h"
#include "headless/lib/browser/headless_pref_names.h"
#include "headless/lib/browser/policy/headless_mode_policy.h"
#include "headless/lib/browser/policy/headless_policies.h"
#include "headless/lib/browser/policy/headless_pref_names.h"

#if BUILDFLAG(IS_WIN)
#include "base/win/registry.h"
Expand Down
2 changes: 1 addition & 1 deletion headless/lib/browser/policy/headless_mode_policy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "headless/lib/browser/headless_pref_names.h"
#include "headless/lib/browser/policy/headless_pref_names.h"

namespace policy {

Expand Down
2 changes: 1 addition & 1 deletion headless/lib/browser/policy/headless_policies.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "components/policy/policy_constants.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "headless/lib/browser/headless_pref_names.h"
#include "headless/lib/browser/policy/headless_mode_policy.h"
#include "headless/lib/browser/policy/headless_pref_names.h"

namespace policy {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "headless/lib/browser/headless_pref_names.h"
#include "headless/lib/browser/policy/headless_pref_names.h"

namespace headless {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef HEADLESS_LIB_BROWSER_HEADLESS_PREF_NAMES_H_
#define HEADLESS_LIB_BROWSER_HEADLESS_PREF_NAMES_H_
#ifndef HEADLESS_LIB_BROWSER_POLICY_HEADLESS_PREF_NAMES_H_
#define HEADLESS_LIB_BROWSER_POLICY_HEADLESS_PREF_NAMES_H_

namespace headless {

Expand All @@ -16,4 +16,4 @@ extern const char kHeadlessMode[];

} // namespace headless

#endif // HEADLESS_LIB_BROWSER_HEADLESS_PREF_NAMES_H_
#endif // HEADLESS_LIB_BROWSER_POLICY_HEADLESS_PREF_NAMES_H_

0 comments on commit 4d2821d

Please sign in to comment.