Skip to content

Commit

Permalink
[License] Add BSD-3 according to Google open source guidance
Browse files Browse the repository at this point in the history
For all source files, ensure they have a valid BSD-3 license.

Some files already have a chromium license, switch to the BSD-3 version.

This is done by running the addlicense tool (https://github.com/google/addlicense).
  • Loading branch information
ycheng627 authored May 16, 2024
1 parent 81b00fa commit 5dd9b20
Show file tree
Hide file tree
Showing 192 changed files with 1,384 additions and 396 deletions.
45 changes: 24 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Copyright 2024 Google LLC

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ Every file containing source code must include copyright and license information

header:
```
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Copyright 2022 Google LLC
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
```

# Background
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2023 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

const shared = {
printWidth: 80,
Expand Down
6 changes: 6 additions & 0 deletions diagnostics-app/build_iwa.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
# Copyright 2024 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd


# Build the angular project
ng build --configuration iwa
Expand Down
6 changes: 6 additions & 0 deletions diagnostics-app/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2024 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd

8 changes: 8 additions & 0 deletions diagnostics-app/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

Expand Down
6 changes: 6 additions & 0 deletions diagnostics-app/scripts/ci.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright 2024 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd

set -e

tsc -b
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Defines routes for app.module
Expand Down
10 changes: 6 additions & 4 deletions diagnostics-app/src/app/app.component.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* Copyright 2021 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
/**
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

.app-container {
Expand Down
8 changes: 5 additions & 3 deletions diagnostics-app/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!--
Copyright 2021 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
Copyright 2021 Google LLC
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
-->

<router-outlet></router-outlet>
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/app.component.it.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Integration tests for app.component
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Global app.component which loads as the root component.
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/app.component.unit.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Unit tests for app.component
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Main app module file of the application.
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/core/app-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2024 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Defines helper functions that is shared across the angular app
Expand Down
8 changes: 8 additions & 0 deletions diagnostics-app/src/app/core/config/data-refresh-intervals.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

import {TelemetryInfoType} from 'common/message';

export const defaultTelemetryRefreshInterval = 10000;
Expand Down
8 changes: 8 additions & 0 deletions diagnostics-app/src/app/core/config/diagnostics-params.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

import {DiagnosticsParamsUnion} from 'common/message';
import {
AcPowerStatus,
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/core/core.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Core module file of the application.
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/core/enums/global.enums.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Enums used in global scope by multiple modules.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Unit tests for diagnostics.service
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/core/services/diagnostics.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Service for running and managing diagnostics
Expand Down
8 changes: 8 additions & 0 deletions diagnostics-app/src/app/core/services/events.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

import {TestBed} from '@angular/core/testing';

import {EventsService} from './events.service';
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/core/services/events.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2023 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Service for starting to capture events and stopping
Expand Down
8 changes: 8 additions & 0 deletions diagnostics-app/src/app/core/services/logging.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

import {TestBed} from '@angular/core/testing';

import {LoggingService} from './logging.service';
Expand Down
8 changes: 8 additions & 0 deletions diagnostics-app/src/app/core/services/logging.service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/* eslint-disable @typescript-eslint/no-explicit-any */
import {Injectable, NgZone} from '@angular/core';
import {BehaviorSubject, Observable} from 'rxjs';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

import {TestBed} from '@angular/core/testing';

import {RoutineV2Service} from './routine-v2.service';
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/core/services/routine-v2.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2023 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2023 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Service for starting to capture events and stopping
Expand Down
10 changes: 7 additions & 3 deletions diagnostics-app/src/app/core/services/telemetry.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/

/**
* @fileoverview Service for fetching telemetry data from Chrome extension.
Expand Down
Loading

0 comments on commit 5dd9b20

Please sign in to comment.