Skip to content

Commit

Permalink
Fix header guards in various dirs.
Browse files Browse the repository at this point in the history
Generated mechanically as follows:

git ls-files '*.h' | grep -E '^(ash|chrome|components|content|ios|ipc|media)/' |\
grep -v third_party | parallel --xargs cpplint.py --filter=-,+build/header_guard -- 2>&1 |\
 grep build/header | tools/apply_cpplint_header_guard.py

Bug: 1200694
Change-Id: Ia8e618c94e45739cf774c56134e5b91102ac42b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3020721
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Eugene Zemtsov <eugene@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Sumaid <ssyed@igalia.com>
Cr-Commit-Position: refs/heads/master@{#910174}
  • Loading branch information
ssyedigalia authored and Chromium LUCI CQ committed Aug 10, 2021
1 parent 8c1c7f2 commit 6ce9efe
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion ash/accessibility/magnifier/docked_magnifier_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@ class ASH_EXPORT DockedMagnifierController

} // namespace ash

#endif // ASH_ACCESSIBILITY_MAGNIFIER_docked_magnifier_controller_H_
#endif // ASH_ACCESSIBILITY_MAGNIFIER_DOCKED_MAGNIFIER_CONTROLLER_H_
2 changes: 1 addition & 1 deletion ash/test/layer_animation_verifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ class LayerAnimationVerifier : public ui::CompositorObserver {

} // namespace ash

#endif
#endif // ASH_TEST_LAYER_ANIMATION_VERIFIER_H_
6 changes: 3 additions & 3 deletions chrome/browser/ash/system/kernel_feature_manager.h
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 CHROME_BROWSER_CHROMEOS_KERNEL_FEATURES_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_KERNEL_FEATURES_MANAGER_H_
#ifndef CHROME_BROWSER_ASH_SYSTEM_KERNEL_FEATURE_MANAGER_H_
#define CHROME_BROWSER_ASH_SYSTEM_KERNEL_FEATURE_MANAGER_H_

#include <string>
#include <utility>
Expand Down Expand Up @@ -57,4 +57,4 @@ class KernelFeatureManager {

} // namespace chromeos

#endif // CHROME_BROWSER_CHROMEOS_KERNEL_FEATURES_MANAGER_H_
#endif // CHROME_BROWSER_ASH_SYSTEM_KERNEL_FEATURE_MANAGER_H_
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 SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#define SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#ifndef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#define CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_

#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_protobuf_utils.h"
Expand All @@ -21,4 +21,4 @@ IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN(TestMessage)
IPC_PROTOBUF_MESSAGE_TRAITS_REPEATED_COMPLEX_MEMBER(rep_comp_sub)
IPC_PROTOBUF_MESSAGE_TRAITS_END()

#endif // SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#endif // CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
8 changes: 4 additions & 4 deletions chrome/common/safe_browsing/ipc_protobuf_message_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@
#include "testing/gtest/include/gtest/gtest.h"

#define IPC_MESSAGE_IMPL
#undef SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#undef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h"

// Generate ipc protobuf traits write methods.
#include "chrome/common/safe_browsing/protobuf_message_write_macros.h"
namespace IPC {
#undef SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#undef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h"
} // namespace IPC

// Generate ipc protobuf traits read methods.
#include "chrome/common/safe_browsing/protobuf_message_read_macros.h"
namespace IPC {
#undef SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#undef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h"
} // namespace IPC

// Generate ipc protobuf traits log methods.
#include "chrome/common/safe_browsing/protobuf_message_log_macros.h"
namespace IPC {
#undef SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#undef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h"
} // namespace IPC

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ class CONTENT_EXPORT AggregationServiceStorage

} // namespace content

#endif // CONTENT_BROWSER_AGGREGATION_SERVICE_AGGREGATION_SERVICE_STORAGE_H
#endif // CONTENT_BROWSER_AGGREGATION_SERVICE_AGGREGATION_SERVICE_STORAGE_H_
2 changes: 1 addition & 1 deletion content/browser/compute_pressure/compute_pressure_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ class CONTENT_EXPORT ComputePressureHost

} // namespace content

#endif // CONTENT_BROWSER_COMPUTE_PRESSURE_COMPUTE_PRESSURE_QUANTIZER_H_
#endif // CONTENT_BROWSER_COMPUTE_PRESSURE_COMPUTE_PRESSURE_HOST_H_
2 changes: 1 addition & 1 deletion ios/chrome/browser/ui/download/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
// Feature to download .mobileconfig files in SFSafariViewController.
extern const base::Feature kDownloadMobileConfigFile;

#endif // u'IOS_CHROME_BROWSER_UI_DOWNLOAD_FEATURES_H_
#endif // IOS_CHROME_BROWSER_UI_DOWNLOAD_FEATURES_H_
6 changes: 3 additions & 3 deletions ipc/ipc_channel_proxy_unittest_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "ipc/ipc_message_start.h"

// Singly-included section for enums and custom IPC traits.
#ifndef IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_
#define IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_
#ifndef IPC_IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_
#define IPC_IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_

class BadType {
public:
Expand All @@ -29,7 +29,7 @@ struct ParamTraits<BadType> {

}

#endif // IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_
#endif // IPC_IPC_CHANNEL_PROXY_UNITTEST_MESSAGES_H_

#undef IPC_MESSAGE_START
#define IPC_MESSAGE_START TestMsgStart
Expand Down
6 changes: 3 additions & 3 deletions ipc/native_handle_type_converters.h
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 IPC_NATIVE_HANDLE_CONVERTER_H_
#define IPC_NATIVE_HANDLE_CONVERTER_H_
#ifndef IPC_NATIVE_HANDLE_TYPE_CONVERTERS_H_
#define IPC_NATIVE_HANDLE_TYPE_CONVERTERS_H_

#include "ipc/ipc_message_attachment.h"
#include "mojo/public/cpp/bindings/type_converter.h" // nogncheck
Expand All @@ -27,4 +27,4 @@ struct TypeConverter<native::SerializedHandleType,

} // namespace mojo

#endif // IPC_NATIVE_HANDLE_CONVERTER_H_
#endif // IPC_NATIVE_HANDLE_TYPE_CONVERTERS_H_
2 changes: 1 addition & 1 deletion media/formats/webm/webm_projection_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class MEDIA_EXPORT WebMProjectionParser : public WebMParserClient {

} // namespace media

#endif // #define MEDIA_FORMATS_WEBM_WEBM_PROJECTION_PARSER_H_
#endif // MEDIA_FORMATS_WEBM_WEBM_PROJECTION_PARSER_H_
2 changes: 1 addition & 1 deletion media/mojo/common/input_error_code_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ AudioCapturerSource::ErrorCode ConvertToCaptureCallbackCode(
mojom::InputStreamErrorCode code);
}

#endif
#endif // MEDIA_MOJO_COMMON_INPUT_ERROR_CODE_CONVERTER_H_

0 comments on commit 6ce9efe

Please sign in to comment.