Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from chromium:main #119

Merged
merged 95 commits into from
Dec 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
15a9041
Roll Depot Tools from fd41e488b72e to 168ca4d812a0 (1 revision)
Dec 16, 2021
3f1ae09
[PA][BRP] Make PA responsible for choosing its synthetic Finch trials
bartekn-chromium Dec 16, 2021
5535b66
[skylab_tests] Update skylab tests cros img version
skylab-tests-roller Dec 16, 2021
9144edc
Replace head scratcher std::hash<IID> implementation.
sorinj Dec 16, 2021
fece6d8
Fix message center artifacts when empty
amehfooz32 Dec 16, 2021
87419a2
Roll Perfetto Trace Processor Linux from 22467673a50f to 15e3467297c3
Dec 16, 2021
4875c8d
blink: adds WebFontFamilyNames
Dec 16, 2021
92376e2
upload report.json to result db as invocation level artifact
WeizhongX Dec 16, 2021
b795f5c
[Omnibox] Enable pedals data on Android
Dec 16, 2021
e1e206d
App history: don't test popstate/hashchange event ordering
domenic Dec 16, 2021
60a6f20
Removing apk uploaded by mistake
Juanmihd Dec 16, 2021
41ef40a
ash: Remove "friend class ScopedRootWindowForNewWindows;" in Shell
Dec 16, 2021
56fa7b6
Clean up stale pixel expectations
Dec 16, 2021
118e784
[cast_core] Remove CastRuntimeService::Create static factory.
ivigen Dec 16, 2021
704682c
Roll Perfetto Trace Processor Win from 22467673a50f to 15e3467297c3
Dec 16, 2021
8f1523c
[SmartLock] Always announce accessibility label
Dec 16, 2021
24ebbc6
[DesktopSharingHub] Fix policy check
Dec 16, 2021
819780b
[flakiness] modify scheduling of flakiness-data-packager
Dec 16, 2021
fe63f9f
Roll ChromeOS Orderfiles from 98-4729.0-1638787322-benchmark-98.0.475…
Dec 16, 2021
9df9902
Extend expiry of DirectSockets.PermissionDeniedFailures
ericwilligers Dec 16, 2021
1b17e83
Roll Skia from dc60ca197e02 to fec9a3027c9e (10 revisions)
Dec 16, 2021
932d76d
borealis: Refactor and improve logging in borealis features
Dec 16, 2021
a8f4cab
Roll androidx from rjqESjGVn... to JA8W6XUES...
Dec 16, 2021
d8d84d9
Roll WebRTC from d525e2d9f71f to f8e160e1c9f8 (4 revisions)
Dec 16, 2021
a18b001
Fix creation of related SiteInstances from a guest SiteInstance.
Dec 16, 2021
8932301
Add launch failure notifications to BrowserChildProcessObserver
wfh-chromium Dec 16, 2021
75141f6
Add trace events for NTP metrics
bergeret Dec 16, 2021
92ed47f
Add minimal trace events for sync mojo calls
clarkduvall Dec 16, 2021
d2e4380
Roll Fuchsia SDK from 7.20211215.1.1 to 7.20211215.3.1
Dec 16, 2021
cd9444e
[Extensions] Clean up ModuleSystem a bit
rdcronin Dec 16, 2021
a4eb65f
Reland: "Add remaining html accessibility static tree tests on Android"
mschillaci Dec 16, 2021
589c507
[Extensions Bindings] Move handleRequestWithPromiseDoNotUse
rdcronin Dec 16, 2021
eb1d416
Roll Fuchsia Internal SDK from 7.20211215.2.1 to 7.20211215.3.1
Dec 16, 2021
4abe91d
Revert "Print Preview: Finish migrating tests to TypeScript"
tasak Dec 16, 2021
4b7abc0
Update quickrun shards
Dec 16, 2021
f2c5923
[FedCM] Temporarily reuse "sub" in account endpoint
yi-gu Dec 16, 2021
d4b4a93
MPArch: Replace DidFinishNavigation with PrimaryPageChanged in Chrome…
Gyuyoung Dec 16, 2021
517a6be
Move //{chromeos => ash/components}/login/auth
duswnchl Dec 16, 2021
87d83ae
Write .isolates as JSON literals, not Python literals.
dpranke Dec 16, 2021
b963aba
Chrome://about from Ash was not re-using existing tab
Dec 16, 2021
30fd84f
[ArcMigration: Lacros to ARC] Implement LinkHandlerModel for Lacros
elkurin Dec 16, 2021
10abc32
Revert "input: Add keyboard details, top row, to input diagnostics"
tasak Dec 16, 2021
b41fd1f
[Sharesheet] Remove obsolete FileBrowser.Share.FileType metric.
melzhan Dec 16, 2021
411d550
Roll Chrome Linux PGO Profile
Dec 16, 2021
60d316f
Add a new boolean pref for use in First-Party Sets enterprise policy.
Dec 16, 2021
08a1dcc
[ULP] Add Java-side ULP initiation histogram.
Acedio Dec 16, 2021
2eafe9a
Modify the GetSourceId function as a static function.
Dec 16, 2021
822d784
bluetooth: bluetooth server tests to standalone tests
chengweih001 Dec 16, 2021
e028216
Roll ANGLE from 26fa0fe68b92 to 89e11878b275 (4 revisions)
Dec 16, 2021
90127d9
wpt docs: use vpython to run tests
Dec 16, 2021
7b86356
[memories] Consolidate history_clusters:: structs in favor of history::
Dec 16, 2021
dfdfc78
Reenable CancelGeolocationRequestInFlight BFCache test.
Dec 16, 2021
75fe3aa
webcodecs: Avoid GPU crash in basic_video_encoding.https.any.js test
Djuffin Dec 16, 2021
e1cdb83
[Extensions c2s] Create Site Access sections in menu and populate
emilia-paz Dec 16, 2021
323e30f
Clipboard: Read non-PNG images as bitmaps on Android
a-sully Dec 16, 2021
b2f91b3
[Snooping protection] Don't cache stale daemon state.
martis-chromium Dec 16, 2021
d74c074
Roll src-internal from cc4f8ef12d74 to f7b514b75b96 (6 revisions)
Dec 16, 2021
4f78f9c
[Projector] Calculate the New Screencast Precondition.
Dec 16, 2021
dbcfdda
[wpt] Fix expectation of WPT test.
bfgeek Dec 16, 2021
8950b94
Add Search mode in remote tabs panel in tab grid
mrefaat88 Dec 16, 2021
60865a5
Roll Chrome Mac PGO Profile
Dec 16, 2021
b0a7917
personalization: change Photos count to int32 type
Dec 16, 2021
313c528
[ArcMigration: Lacros to ARC] Implement HandleUrl
elkurin Dec 16, 2021
3688c45
Prerender: extend PageLoad.Clients.Prerender.PaintTiming.* histograms
d0iasm Dec 16, 2021
517188c
CCA: Migrate barcode_chip.js to TypeScript
peter50216 Dec 16, 2021
eb136f4
[Extensions] Clean up a couple build files
rdcronin Dec 16, 2021
185447e
[GMNext] Make control_highlight_color dynamic
fsinan Dec 16, 2021
1ab121b
Slimming PaintLayer: remove more pre-CAP code from PaintLayer (4)
progers Dec 16, 2021
937fb4b
CodeHealth: Refactor extensions::Manifest::{GetString => FindStringPath}
afq984 Dec 16, 2021
aac6548
Roll Chrome Win32 PGO Profile
Dec 16, 2021
a3bf7d8
Update beforematch for hidden=until-found
josepharhar Dec 16, 2021
7eb1999
Fix the crash issue when active an app.
Dec 16, 2021
4221a07
Updating trunk VERSION from 4769.0 to 4770.0
Dec 16, 2021
160ddc0
[CrOS Bluetooth] Remove redundant tab stop in paired device list.
Dec 16, 2021
39ed519
[AW] Always record system apps package in WebView metrics
HazemSamir Dec 16, 2021
d4e7cb9
Files SWA: Fix file picker and save as dialogs for multi profile
Dec 16, 2021
39bd770
Add Mojo type map for SourceType enum
Dec 16, 2021
7dcb987
arc: implement metric that reflects actual waiting app launch time
Dec 16, 2021
2128f59
sensors: Split accelerometer tests to avoid flake
reillyeon Dec 16, 2021
e4aca17
[VCN] Fix the issue that error dialog is not shown correctly
Dec 16, 2021
c76d5fa
Import wpt@d67741a05646ced1301b363e1304fa79957bc286
Dec 16, 2021
e7bc958
Refactor: Move mask/badge icon resources to //chrome/browser/resources
elkurin Dec 16, 2021
319d235
blink/handwriting: correctly report unsupported languages
wacky6 Dec 16, 2021
da20c54
Roll DevTools Frontend from d692cac31ffe to de5ebd0ec8b1 (11 revisions)
Dec 16, 2021
7ae7bfb
Roll ANGLE from 89e11878b275 to 670679918668 (3 revisions)
Dec 16, 2021
632abce
[Fuchsia] Add Support for Initiailizing All Arguments Use by Targets
Dec 16, 2021
513afe5
Roll src-internal from f7b514b75b96 to 6d21a3cb937a (1 revision)
Dec 16, 2021
55412d5
Track theme correctly for light/dark header images.
pkasting Dec 16, 2021
57d9dab
terminal: Add chrome.terminalPrivate.getOSInfo().
g-easy Dec 16, 2021
e45f371
BackForwardCache: Add a test CacheWhenMediaSessionPlaybackStateIsChanged
Dec 16, 2021
0984d7f
Add DumpWithoutCrashing to NavigationEntryImpl::GetTreeNode()
rakina Dec 16, 2021
b83edaa
Fix use-after-move in csp_validator::Directive
Dec 16, 2021
9cfb1b2
ServiceWorker: Move ServiceWorkerFetchContextImpl for Onion Soup
nhiroki Dec 16, 2021
c27f343
media/gpu/VEA: provide frame QP by VEA through BitstreamBufferMetadata
zlma7001 Dec 16, 2021
8084cf5
Roll Chrome Win32 PGO Profile
Dec 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ vars = {
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling Skia
# and whatever else without interference from each other.
'skia_revision': 'dc60ca197e0280fb2fe82e42321498a0443b408f',
'skia_revision': 'fec9a3027c9e54b6671769c8d04d07382214c557',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling V8
# and whatever else without interference from each other.
'v8_revision': 'ceb9223e1ab1df795d5f3e69f9fae92bb8328e92',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling ANGLE
# and whatever else without interference from each other.
'angle_revision': '26fa0fe68b928dcf037b0fbd8af07e88d4f91235',
'angle_revision': '6706799186683dd3733c4610de09d84721aa08c8',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling SwiftShader
# and whatever else without interference from each other.
Expand Down Expand Up @@ -314,7 +314,7 @@ vars = {
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling devtools-frontend
# and whatever else without interference from each other.
'devtools_frontend_revision': 'd692cac31ffea822377407e775750d9f6a042eba',
'devtools_frontend_revision': 'de5ebd0ec8b1cce77140041cd80a14d8ec28bdad',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling libprotobuf-mutator
# and whatever else without interference from each other.
Expand Down Expand Up @@ -799,7 +799,7 @@ deps = {
'packages': [
{
'package': 'chromium/third_party/androidx',
'version': 'rjqESjGVnqj61OsILGz2zAx9aZu_63YrdoiwrUlJrHoC',
'version': 'JA8W6XUESiIusRecU6mz7G-zjV6Tk4hlDO5hwQf6i8YC',
},
],
'condition': 'checkout_android',
Expand Down Expand Up @@ -1038,7 +1038,7 @@ deps = {
},

'src/third_party/depot_tools':
Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' + 'fd41e488b72ece0125db83730f298a9e1393bc86',
Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' + '168ca4d812a03fc41408c8eb8fdca34083a7a135',

'src/third_party/devtools-frontend/src':
Var('chromium_git') + '/devtools/devtools-frontend' + '@' + Var('devtools_frontend_revision'),
Expand Down Expand Up @@ -1642,7 +1642,7 @@ deps = {
Var('chromium_git') + '/external/github.com/gpuweb/cts.git' + '@' + 'c843f8d63c8c17acfbb7d48e09059a581ba779b9',

'src/third_party/webrtc':
Var('webrtc_git') + '/src.git' + '@' + 'd525e2d9f71f02832a8c8d2d63d47b96c16a00fe',
Var('webrtc_git') + '/src.git' + '@' + 'f8e160e1c9f8e805e94be71e2f2da3259dd88b8f',

'src/third_party/libgifcodec':
Var('skia_git') + '/libgifcodec' + '@'+ Var('libgifcodec_revision'),
Expand Down Expand Up @@ -1700,7 +1700,7 @@ deps = {
Var('chromium_git') + '/v8/v8.git' + '@' + Var('v8_revision'),

'src-internal': {
'url': 'https://chrome-internal.googlesource.com/chrome/src-internal.git@cc4f8ef12d745384de360d967ac3f324fdeb8b67',
'url': 'https://chrome-internal.googlesource.com/chrome/src-internal.git@6d21a3cb937a00f0212b50f7d0744ac830cc654d',
'condition': 'checkout_src_internal',
},

Expand Down
19 changes: 19 additions & 0 deletions android_webview/browser/metrics/aw_metrics_service_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,25 @@ int AwMetricsServiceClient::GetSampleRatePerMille() const {
return kBetaDevCanarySampledInRatePerMille;
}

std::string AwMetricsServiceClient::GetAppPackageNameIfLoggable() {
if (!base::FeatureList::IsEnabled(
android_webview::features::kWebViewAppsPackageNamesAllowlist)) {
// Revert to the default implementation.
return ::metrics::AndroidMetricsServiceClient::
GetAppPackageNameIfLoggable();
}
AndroidMetricsServiceClient::InstallerPackageType installer_type =
GetInstallerPackageType();
// Always record the app package name of system apps even if it's not in the
// allowlist.
if (installer_type == InstallerPackageType::SYSTEM_APP ||
(installer_type == InstallerPackageType::GOOGLE_PLAY_STORE &&
ShouldRecordPackageName())) {
return GetAppPackageName();
}
return std::string();
}

bool AwMetricsServiceClient::ShouldRecordPackageName() {
if (!base::FeatureList::IsEnabled(
android_webview::features::kWebViewAppsPackageNamesAllowlist)) {
Expand Down
4 changes: 4 additions & 0 deletions android_webview/browser/metrics/aw_metrics_service_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ class AwMetricsServiceClient : public ::metrics::AndroidMetricsServiceClient,
void RegisterAdditionalMetricsProviders(
metrics::MetricsService* service) override;

// Gets the embedding app's package name if it's OK to log. Otherwise, this
// returns the empty string.
std::string GetAppPackageNameIfLoggable() override;

// If `android_webview::features::kWebViewAppsPackageNamesAllowlist` is
// enabled:
// - It returns `true` if the app is in the list of allowed apps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "base/test/test_simple_task_runner.h"
#include "base/time/time.h"
#include "base/version.h"
#include "components/embedder_support/android/metrics/android_metrics_service_client.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"

Expand All @@ -22,6 +23,9 @@ namespace android_webview {
using AppPackageNameLoggingRuleStatus =
AwMetricsServiceClient::AppPackageNameLoggingRuleStatus;

using InstallerPackageType =
metrics::AndroidMetricsServiceClient::InstallerPackageType;

namespace {

constexpr char kTestAllowlistVersion[] = "123.456.789.10";
Expand Down Expand Up @@ -245,4 +249,64 @@ TEST_F(AwMetricsServiceClientTest, TestShouldRecordPackageName_SameAsCache) {
"Android.WebView.Metrics.PackagesAllowList.RecordStatus", 1);
}

TEST_F(AwMetricsServiceClientTest, TestGetAppPackageNameIfLoggable) {
base::test::ScopedFeatureList scoped_list;
scoped_list.InitAndEnableFeature(
android_webview::features::kWebViewAppsPackageNamesAllowlist);

class TestClient : public AwMetricsServiceClient {
public:
TestClient()
: AwMetricsServiceClient(
std::make_unique<AwMetricsServiceClientTestDelegate>()) {}
~TestClient() override = default;

bool ShouldRecordPackageName() override {
return should_record_package_name_;
}

void SetShouldRecordPackageName(bool value) {
should_record_package_name_ = value;
}

InstallerPackageType GetInstallerPackageType() override {
return installer_type_;
}

void SetInstallerPackageType(InstallerPackageType installer_type) {
installer_type_ = installer_type;
}

private:
bool should_record_package_name_;
InstallerPackageType installer_type_;
};

TestClient client;

// Package names of system apps are always loggable even if they are not in
// the allowlist of apps.
client.SetInstallerPackageType(InstallerPackageType::SYSTEM_APP);
client.SetShouldRecordPackageName(false);
EXPECT_FALSE(client.GetAppPackageNameIfLoggable().empty());
client.SetShouldRecordPackageName(true);
EXPECT_FALSE(client.GetAppPackageNameIfLoggable().empty());

// Package names of APPs that are installed by the Play Store are loggable if
// they are in the allowlist of apps.
client.SetInstallerPackageType(InstallerPackageType::GOOGLE_PLAY_STORE);
client.SetShouldRecordPackageName(false);
EXPECT_TRUE(client.GetAppPackageNameIfLoggable().empty());
client.SetShouldRecordPackageName(true);
EXPECT_FALSE(client.GetAppPackageNameIfLoggable().empty());

// Package names of APPs that are not system apps nor installed by the Play
// Store are not loggable.
client.SetInstallerPackageType(InstallerPackageType::OTHER);
client.SetShouldRecordPackageName(false);
EXPECT_TRUE(client.GetAppPackageNameIfLoggable().empty());
client.SetShouldRecordPackageName(true);
EXPECT_TRUE(client.GetAppPackageNameIfLoggable().empty());
}

} // namespace android_webview
6 changes: 6 additions & 0 deletions android_webview/common/crash_reporter/crash_keys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ const char* const kWebViewCrashKeyAllowList[] = {

"VerifyDidCommit-has_si_url",

"NoNode-ftn_is_main_frame",
"NoNode-ftn_child_count",
"NoNode-bfs_depth",
"NoFTN-is_main_frame",
"NoFTN-children_size",

// services/network
"network_deserialization",

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.chromium.components.metrics.AndroidMetricsLogUploader;
import org.chromium.components.metrics.AndroidMetricsServiceClient;
import org.chromium.components.metrics.ChromeUserMetricsExtensionProtos.ChromeUserMetricsExtension;
import org.chromium.components.metrics.InstallerPackageType;
import org.chromium.components.metrics.MetricsSwitches;
import org.chromium.components.metrics.StabilityEventType;
import org.chromium.components.metrics.SystemProfileProtos.SystemProfileProto;
Expand Down Expand Up @@ -385,7 +386,8 @@ public void testMetadata_appPackageName() throws Throwable {

mRule.runOnUiThread(() -> {
AwBrowserProcess.setWebViewPackageName(appPackageName);
AndroidMetricsServiceClient.setCanRecordPackageNameForAppTypeForTesting(true);
AndroidMetricsServiceClient.setInstallerPackageTypeForTesting(
InstallerPackageType.GOOGLE_PLAY_STORE);
// A valid version string and non expired date means the app package name should be
// recorded.
AwMetricsServiceClient.setAppPackageNameLoggingRuleForTesting(
Expand Down
1 change: 1 addition & 0 deletions android_webview/test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ test("android_webview_unittests") {
"//components/component_updater",
"//components/component_updater/android:embedded_component_loader",
"//components/embedder_support/android:util",
"//components/embedder_support/android/metrics:metrics",
"//components/flags_ui:flags_ui",
"//components/metrics",
"//components/metrics:component_metrics",
Expand Down
1 change: 0 additions & 1 deletion ash/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,6 @@ component("ash") {
# on it. TODO(stevenjb): Assert on //chromeos/dbus/cryptohome_client once it
# is extracted from //chromeos/dbus. https://crbug.com/647367.
"//chromeos/cryptohome",
"//chromeos/login/auth",
"//chromeos/tpm",

# Ash should not depend upon content at all.
Expand Down
4 changes: 3 additions & 1 deletion ash/capture_mode/capture_mode_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "ash/projector/test/mock_projector_client.h"
#include "ash/public/cpp/capture_mode/capture_mode_test_api.h"
#include "ash/public/cpp/holding_space/holding_space_test_api.h"
#include "ash/public/cpp/projector/projector_new_screencast_precondition.h"
#include "ash/public/cpp/projector/projector_session.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
Expand Down Expand Up @@ -5044,7 +5045,8 @@ TEST_F(ProjectorCaptureModeIntegrationTests,
controller->StartVideoRecordingImmediatelyForTesting();
EXPECT_TRUE(controller->is_recording_in_progress());
EXPECT_FALSE(ProjectorSession::Get()->is_active());
EXPECT_FALSE(ProjectorController::Get()->CanStartNewSession());
EXPECT_NE(ProjectorController::Get()->GetNewScreencastPrecondition().state,
NewScreencastPreconditionState::kEnabled);
}

namespace {
Expand Down
1 change: 1 addition & 0 deletions ash/components/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ source_set("unit_tests") {
"//ash/components/drivefs:unit_tests",
"//ash/components/fwupd:unit_tests",
"//ash/components/geolocation:unit_tests",
"//ash/components/login/auth:unit_tests",
"//ash/components/login/session:unit_tests",
"//ash/components/peripheral_notification:unit_tests",
"//ash/components/phonehub:unit_tests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")
import("//testing/test.gni")
import("//third_party/protobuf/proto_library.gni")

assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos")
assert(is_chromeos_ash, "Non-Chrome-OS builds must not depend on //ash")

component("auth") {
defines = [ "IS_CHROMEOS_LOGIN_AUTH_IMPL" ]
defines = [ "IS_ASH_LOGIN_AUTH_IMPL" ]
public_deps = [ ":challenge_response_key" ]
deps = [
"//ash/constants",
Expand Down Expand Up @@ -109,7 +110,7 @@ source_set("test_support") {
# This is a separate targat to avoid a circular dependency with
# chromeos/cryptohome.
source_set("challenge_response_key") {
defines = [ "IS_CHROMEOS_LOGIN_AUTH_IMPL" ]
defines = [ "IS_ASH_LOGIN_AUTH_IMPL" ]
deps = [ "//base" ]
sources = [
"challenge_response_key.cc",
Expand Down
File renamed without changes.
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 "chromeos/login/auth/auth_attempt_state.h"
#include "ash/components/login/auth/auth_attempt_state.h"

#include <utility>

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

#ifndef CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_
#define CHROMEOS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_
#ifndef ASH_COMPONENTS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_
#define ASH_COMPONENTS_LOGIN_AUTH_AUTH_ATTEMPT_STATE_H_

#include <memory>
#include <string>

#include "ash/components/login/auth/auth_status_consumer.h"
#include "ash/components/login/auth/user_context.h"
#include "base/component_export.h"
#include "base/memory/weak_ptr.h"
#include "chromeos/login/auth/auth_status_consumer.h"
#include "chromeos/login/auth/user_context.h"
#include "google_apis/gaia/gaia_auth_consumer.h"
#include "third_party/cros_system_api/dbus/service_constants.h"

namespace chromeos {

// Tracks the state associated with a single attempt to log in to chromium OS.
// Enforces that methods are only called on the UI thread.
class COMPONENT_EXPORT(CHROMEOS_LOGIN_AUTH) AuthAttemptState
class COMPONENT_EXPORT(ASH_LOGIN_AUTH) AuthAttemptState
: public base::SupportsWeakPtr<AuthAttemptState> {
public:
// Used to initialize for a login attempt.
Expand Down Expand Up @@ -88,4 +88,4 @@ class COMPONENT_EXPORT(CHROMEOS_LOGIN_AUTH) AuthAttemptState

} // namespace chromeos

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

#include "chromeos/login/auth/auth_session_authenticator.h"
#include "ash/components/login/auth/auth_session_authenticator.h"

#include "ash/components/login/auth/cryptohome_key_constants.h"
#include "ash/components/login/auth/cryptohome_parameter_utils.h"
#include "ash/components/login/auth/user_context.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/callback_helpers.h"
Expand All @@ -14,9 +17,6 @@
#include "chromeos/cryptohome/userdataauth_util.h"
#include "chromeos/dbus/cryptohome/UserDataAuth.pb.h"
#include "chromeos/dbus/userdataauth/userdataauth_client.h"
#include "chromeos/login/auth/cryptohome_key_constants.h"
#include "chromeos/login/auth/cryptohome_parameter_utils.h"
#include "chromeos/login/auth/user_context.h"
#include "components/device_event_log/device_event_log.h"
#include "components/user_manager/user_names.h"

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

#ifndef CHROMEOS_LOGIN_AUTH_AUTH_SESSION_AUTHENTICATOR_H_
#define CHROMEOS_LOGIN_AUTH_AUTH_SESSION_AUTHENTICATOR_H_
#ifndef ASH_COMPONENTS_LOGIN_AUTH_AUTH_SESSION_AUTHENTICATOR_H_
#define ASH_COMPONENTS_LOGIN_AUTH_AUTH_SESSION_AUTHENTICATOR_H_

#include "ash/components/login/auth/authenticator.h"
#include "ash/components/login/auth/safe_mode_delegate.h"
#include "base/component_export.h"
#include "base/memory/weak_ptr.h"
#include "chromeos/dbus/cryptohome/UserDataAuth.pb.h"
#include "chromeos/login/auth/authenticator.h"
#include "chromeos/login/auth/safe_mode_delegate.h"
#include "components/account_id/account_id.h"
#include "components/user_manager/user_type.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
Expand Down Expand Up @@ -45,7 +45,7 @@ class AuthStatusConsumer;
// * Different ways to hash plain text key
// * Different ways to create crytohome key from key in UserContext

class COMPONENT_EXPORT(CHROMEOS_LOGIN_AUTH) AuthSessionAuthenticator
class COMPONENT_EXPORT(ASH_LOGIN_AUTH) AuthSessionAuthenticator
: public Authenticator {
public:
AuthSessionAuthenticator(
Expand Down Expand Up @@ -279,4 +279,4 @@ class COMPONENT_EXPORT(CHROMEOS_LOGIN_AUTH) AuthSessionAuthenticator

} // namespace chromeos

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

#include "chromeos/login/auth/auth_status_consumer.h"
#include "ash/components/login/auth/auth_status_consumer.h"

#include "base/notreached.h"

namespace chromeos {
Expand Down
Loading