0

Update copyright headers in docs/ and styleguide/

No-Try: true
Bug: 1098010
Change-Id: Id44652c3572c46c4ec732b69473fb951749d35eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3878321
Commit-Queue: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1043985}
This commit is contained in:
Avi Drissman
2022-09-07 15:50:38 +00:00
committed by Chromium LUCI CQ
parent ee11988d01
commit 7b017a99d8
9 changed files with 15 additions and 20 deletions

@ -16,7 +16,7 @@ This outputs Java String constants which represent the name of the
2020" to be whatever the year is at the time of writing (as you would for any
other file).
```java
// Copyright 2020 The Chromium Authors.
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -82,7 +82,7 @@ This outputs Java String constants which represent the name of the
would contain:
```java
// Copyright $YEAR The Chromium Authors.
// Copyright $YEAR The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

@ -14,7 +14,7 @@ template file. The template file must be specified in the GN target.
2020" to be whatever the year is at the time of writing (as you would for any
other file).
```java
// Copyright 2020 The Chromium Authors.
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -65,7 +65,7 @@ template file. The template file must be specified in the GN target.
would contain:
```java
// Copyright $YEAR The Chromium Authors.
// Copyright $YEAR The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

@ -194,7 +194,7 @@ may be like the following.
```
#!/bin/bash
# Copyright 2021 The Chromium Authors.
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@ -222,7 +222,7 @@ example can be like the following:
```
#!/usr/bin/env python
# Copyright 2021 The Chromium Authors.
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

@ -89,7 +89,7 @@ To do this, we can create:
With these contents:
```
# Copyright 2018 The Chromium Authors.
# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

@ -1,5 +1,5 @@
#!/usr/bin/env python
# Copyright 2020 The Chromium Authors. All rights reserved.
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Transform CBCM Takeout API Data (Python3)."""

@ -1,5 +1,5 @@
#!/usr/bin/env python
# Copyright 2020 The Chromium Authors. All rights reserved.
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Transform CBCM Takeout API Data (Python2)."""

@ -138,7 +138,7 @@ class SimpleMenuItemViewBinder {
### simple_menu_item.xml
```xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 The Chromium Authors.
<!-- Copyright 2019 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<LinearLayout

@ -19,7 +19,7 @@ To create this simple dialog, you would need to add the following files:
`login_bubble_dialog_example.h`
``` cpp
// Copyright 2020 The Chromium Authors.
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -48,7 +48,7 @@ class LoginBubbleDialogView : public views::BubbleDialogDelegateView {
`login_bubble_dialog_example.cc`
``` cpp
// Copyright 2020 The Chromium Authors.
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -379,7 +379,7 @@ The final code should resemble the following:
```
// Copyright 2020 The Chromium Authors.
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -430,7 +430,7 @@ class LoginBubbleDialogView : public BubbleDialogDelegateView,
```
// Copyright 2020 The Chromium Authors.
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

@ -265,21 +265,16 @@ All files in Chromium start with a common license header. That header should
look like this:
```c++
// Copyright $YEAR The Chromium Authors.
// Copyright $YEAR The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
```
Some important notes about this header:
* There is no `(c)` after `Copyright`.
* `$YEAR` should be set to the current year at the time a file is created, and
not changed thereafter.
* For files specific to ChromiumOS, replace the word Chromium with the phrase
ChromiumOS.
* If the style changes, don't bother to update existing files to comply with
the new style. For the same reason, don't just blindly copy an existing
file's header when creating a new file, since the existing file may use an
outdated style.
* The Chromium project hosts mirrors of some upstream open-source projects.
When contributing to these portions of the repository, retain the existing
file headers.