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 #104

Merged
merged 118 commits into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
7a765e5
Roll src-internal from 7499f7d4e8b6 to 557423681afa (1 revision)
Dec 13, 2021
a3135fd
Do not apply page scale to fenced frame roots.
dtapuska Dec 13, 2021
dd977fa
Android: Add required parameter to benchmark.py
Dec 13, 2021
0de525c
Add a TODO comment for an old open bug to compare_build_artifacts.py
nico Dec 13, 2021
6a3c620
Add a utility crash bucket to Stability.Counts2.
Dec 13, 2021
39669c6
Roll WebRTC from a6b138d6b4ef to 699d1a242ecd (13 revisions)
Dec 13, 2021
c207fe3
Make StringImpl::ref_count_ atomic
kbabbitt Dec 13, 2021
da78129
Adds outer horizontal padding to continue tasks table layout
Dec 13, 2021
f79d7c1
Roll Chrome Win32 PGO Profile
Dec 13, 2021
3d830c9
Roll Perfetto Trace Processor Mac from 44638d7a4268 to 1302b4259684
Dec 13, 2021
434c2ff
[PaymentRequest] Measure usage of the retry() method
stephenmcgruer Dec 13, 2021
0b3e04c
Roll DevTools Frontend from 0e3067f96d33 to 7f5c3ecd65d7 (1 revision)
Dec 13, 2021
03bc298
[MPArch] Correct ChromePaymentRequestDelegate use of WebContents
cdesouza-chromium Dec 13, 2021
0325f5b
[Extensions] Fix flakiness for PersistentDynamicContentScripts test
Dec 13, 2021
0b6056e
Roll gn from fc295f3ac7ca to 2e56c317bd8e
Dec 13, 2021
5661765
[Fuchsia] Fix internal autoroll account in OWNER file
Dec 13, 2021
c0953eb
Move ScopedFeatureList into test fixture to fix test flakes.
JoeNotCharlesGoogle Dec 13, 2021
3ef0478
[FlexNG] MinBlockSizeShouldEncompassIntrinsicSize flex row tests
alisonmaher Dec 13, 2021
c862c48
Add AndroidFixedUmaSessionResumeOrder to fieldtrial_testing_config.json
rogerm Dec 13, 2021
07102d4
[exo] Handle drag 'n drop cancel in ExtendedDragSource
tonikitoo Dec 13, 2021
cde49e0
[Code Health] Remove DictionaryValue::GetDictionary() in extensions/b/*
muyao-xu Dec 13, 2021
cac2beb
[Clank CBCM] Modularize tests that don't depend on PolicyTest - Part III
Dec 13, 2021
5efb134
Add info needed for AverageLag metrics to cc::EventMetrics
Dec 13, 2021
62914ed
Fix comparison of different integer signs warning
Dec 13, 2021
b6f385e
Launch Lens image search on desktop at ToT.
Dec 13, 2021
5e6d918
Only use BlitFramebufferCHROMIUM if multisampling is available
nicholasbishop Dec 13, 2021
79a6a30
[FedCM] Add yigu as FedCM owner
yi-gu Dec 13, 2021
6dd13d6
Fix WebGL rendering issue with AngleVulkan shared image backing
phuang Dec 13, 2021
f19587a
Reduce amount of trace data collected by rendering benchmarks
junov Dec 13, 2021
663d3be
[CT] Update SelectAroundCaretAck value to pass an object.
sebsg Dec 13, 2021
d406bbc
Extend the expiration milestone for feed-v2-autoplay
jianli-chromium Dec 13, 2021
0c59a96
PWA File Handling cleanups
Dec 13, 2021
e784b45
Fix deprecation warning in analyze_includes.py.
leizleiz Dec 13, 2021
afe2e89
Roll RTS model from hLuT4gVcq... to yVc-vTWsY...
Dec 13, 2021
334775a
[upgrade_util] Also add an event for the success case
Dec 13, 2021
e368b35
[fuchsia] Update fuchsia.unit_tests.filter
Dec 13, 2021
8f71656
[iOS][Download] Refactor browser_download_service & update mime_type_…
Dec 13, 2021
9bdc7f4
[CloudReady][OOBE] Migrate OsTrial screen to Polymer3
Dec 13, 2021
9acaba2
Add a simple InteractionSequence test for Tutorials
Dec 13, 2021
73c715c
[CrOS Bluetooth] Make entire "pair new device" row clickable.
Dec 13, 2021
4f61fe3
Remove UseBrowserSyncConsent
Dec 13, 2021
52b544a
[fuchsia] Enable passing media tests from content_browsertests
qsr Dec 13, 2021
69ed47f
Fixing a typo I noticed while reading the header
Dec 13, 2021
be378c5
Revert "Remove use of GridLayout for the payment sheet view."
stephenmcgruer Dec 13, 2021
75cfad3
Update feed pull-to-refresh to be enabled by default
jianli-chromium Dec 13, 2021
756974b
Automated Commit: LKGM 14395.0.0 for chromeos.
Dec 13, 2021
dceea7a
Remove two unneeded logging statements
dtsengchromium Dec 13, 2021
680180d
[logs] Remove unused condition
gbbosak Dec 13, 2021
1cab794
Fix memory leak in ChromeDataExchangeDelegateTest.
Dec 13, 2021
3a479ed
Roll src/third_party/ffmpeg/ d151785b5..53de560ab (4 commits)
jwright-arm Dec 13, 2021
2712d26
exo: (reland) Implement zcr_color_manager color space functions
Dec 13, 2021
29247cd
Tailored Security message for unconsented out-of-flow users on Android
Dec 13, 2021
1829de5
StorageBuckets: Extend histogram expiry
ayuishii Dec 13, 2021
3e4f08a
Add print enum value to DeepScanAccessPoint
dominiquefc Dec 13, 2021
4249c55
Fix memory leak in ArcActiveWindowThrottleObserverTest.
Dec 13, 2021
ef2ce42
Fix memory leak in CrostiniActiveWindowThrottleObserverTest.
Dec 13, 2021
f84aa6c
Fix synchronization issue in factory tests
Dec 13, 2021
c721693
exo: fix pickled data handling in DragDropOperation
nickdiego Dec 13, 2021
feab8ad
Desk Templates: Prevent unwanted click actions
Dec 13, 2021
bd399a8
[Messages] Support multiple legal lines in save card messages
Dec 13, 2021
4c9ad54
Background tab adds before group discontinuity.
Dec 13, 2021
44db2af
Updating XTBs based on .GRDs from branch main
Dec 13, 2021
f34104f
[ash] Implement DeviceLoginWebUILazyLoading policy.
Dec 13, 2021
505fcd5
Disabled failed tests in gl_unittests on android-12-x64-fyi-rel
Dec 13, 2021
f127ae6
Updater: Fix install script.
Dec 13, 2021
f5fd18d
Cleanup: Remove JS reference from js_modulizer
Dec 13, 2021
d8bceba
Properly close Lens and open link after LRP press
hujasonx Dec 13, 2021
9a47fbb
Slimming PaintLayer: remove more pre-CAP code from PaintLayer (2)
progers Dec 13, 2021
dd9e90b
DevTools: Add getPreference binding
OrKoN Dec 13, 2021
c8dd480
Revert "[OptGuide] Fix guest profile for models/hints."
Dec 13, 2021
f3d9736
[Magnifier] Don't pan Docked Magnifier for VK touch events
Dec 13, 2021
27b2968
Roll Dawn from b320f1700059 to e00c6bd39584 (3 revisions)
Dec 13, 2021
2689d9a
[Crash Fixing] A quick fixing for `AppListClientImpl::ViewShown()`
Dec 13, 2021
73576d4
ChromeVox: Remove workaround for googletts perf regression
dtsengchromium Dec 13, 2021
f71ddba
webauthn: split caBLEv2 device handling from delegate.
Dec 13, 2021
321ff41
Revert "Disable python3 for Linux Chromium OS ASan LSan Builder."
kleerwater Dec 13, 2021
0b0b5f0
Add/update DIR_METADATA for sensors/battery/vibration directories in …
rakuco Dec 13, 2021
da3f66c
Roll src-internal from 557423681afa to 3bdd0bbcef1c (3 revisions)
Dec 13, 2021
76028f8
Extend Ash.Overview.AnimationSmoothness metrics
Dec 13, 2021
4eacb3a
[MPArch] Migrate replication state storage to BrowsingContextState
Dec 13, 2021
488f199
[SharingHub] Do not get ContentView when BottomSheet is null.
Dec 13, 2021
d37b250
[Sheriff] Disable SignedExchangeRequestHandlerRealCertVerifierBrowser…
Dec 13, 2021
a61294d
Add accessibility description context to history remove
Dec 13, 2021
5e87401
Import wpt@6c002bca6b6bae78d016ec9ce77baf4a9517b720
WeizhongX Dec 13, 2021
1aa4dbb
Increase timeout on mac-official bot
nico Dec 13, 2021
ba6cbce
Test outside of IDL conversions for CanvasFilter
mysteryDate Dec 13, 2021
d9cb051
Add temporary logging info for debugging unexpected histogram results
Dec 13, 2021
52f5fad
Prevent the live caption toggle from changing the title of the live c…
evliu-google Dec 13, 2021
0642aff
Remove C++ from TableViewLinkHeaderFooterItem/View and delegate API.
Dec 13, 2021
c8cbeb2
Remove unneeded framework work arounds in Android accessibility code
mschillaci Dec 13, 2021
0fdcc34
Disable OOP-C on ChromeOS with legacy video decoder
vasilyt Dec 13, 2021
3ec5f0a
Roll libcxxabi from 58799ca24f08 to 603d9d1067d1 (1 revision)
Dec 13, 2021
c2c24aa
settings: fix UI issues in security keys credential management dialog
kreichgauer Dec 13, 2021
0d25bea
[GMNext] Make blue text dynamic except CTA/links/URLs
fsinan Dec 13, 2021
59fb042
Updater: Only convert legacy updaters on the first activation.
Dec 13, 2021
a7c3585
[BrowserSwitcher] Update histograms expiry
Dec 13, 2021
b841deb
Roll Chrome Mac PGO Profile
Dec 13, 2021
4370620
capture_mode_projector: notify all video recordings starts and ends
Dec 13, 2021
7d2d656
Roll Chrome Linux PGO Profile
Dec 13, 2021
2af8f53
Reporting: Add TME info sampling.
Dec 13, 2021
b53884e
Don't run prefetch proxy canary checks on startup.
Dec 13, 2021
eb0e9ad
Launch Preconnect to Search on desktop.
Dec 13, 2021
0068d0d
os settings: remove unused code in search_concept.h
Dec 13, 2021
ba8ac49
Roll Chrome Win64 PGO Profile
Dec 13, 2021
c58b0ad
Roll Skia from 507884bf3d75 to e4bccab4ac7c (7 revisions)
Dec 13, 2021
78c7325
[Code Health] Remove deprecated method ListValue::Set()
Dec 13, 2021
b593e92
[devtools] Migrate IdleTask to use AsyncTaskContext
bmeurer Dec 13, 2021
2754d7e
[headless] Disable Native Headless tests on OSes other than Linux/Win
Dec 13, 2021
a83fff9
Revert "Reland "[OptGuide] Support models for guest profiles.""
Dec 13, 2021
af0abed
Reland "Mac: enable ThinLTO (without unit splitting)"
speednoisemovement Dec 13, 2021
bc3c7e1
Revert "android: ModernLinker: avoid dl_iterate_phdr"
pasko Dec 13, 2021
64e0520
Revert "[discardable_memory] Call `DumpWithoutCrashing` when browser …
Dec 13, 2021
2398644
Fix CHECK in RenderProcessHost::ForEachRenderFrameHost.
creis Dec 13, 2021
7e5d494
[Gamepad] Implement WgiDataFetcherWin::GetGamepadData
gabrielsanbrito Dec 13, 2021
2bbb3aa
[Frameworks roll] Roll to 416100123 piper revision
Dec 13, 2021
c8fe2ce
[cc/metrics] Add some diagnostics to FrameSequenceTracker traces.
sadrulhc Dec 13, 2021
7b1a141
Roll Perfetto from 1302b4259684 to 86b18b837a45 (1 revision)
Dec 13, 2021
1de0c8a
Port chrome-only dialog tests to WPT part 5
josepharhar Dec 13, 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
  •  
  •  
  •  
20 changes: 10 additions & 10 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ 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': '507884bf3d7519d37443dd88d052d43df41db339',
'skia_revision': 'e4bccab4ac7ceb76cd99b9c92c2b1729c7e60aaf',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling V8
# 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': '0e3067f96d33d956c373562cbe2229daf70ae9ca',
'devtools_frontend_revision': '7f5c3ecd65d7ca4f8a62c4d61fda43be64d0cc59',
# 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 @@ -354,7 +354,7 @@ vars = {
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling feed
# and whatever else without interference from each other.
'dawn_revision': 'b320f17000595ebd06f63aadece200375d83228d',
'dawn_revision': 'e00c6bd39584aa864e37140637ec6bed7dc57ea8',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling feed
# and whatever else without interference from each other.
Expand Down Expand Up @@ -398,7 +398,7 @@ vars = {
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling feed
# and whatever else without interference from each other.
'libcxxabi_revision': '58799ca24f08088ab1db9cdf7d67ee8b1f4bc605',
'libcxxabi_revision': '603d9d1067d178ee2dbd1ba8028413baa876a771',
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling feed
# and whatever else without interference from each other.
Expand All @@ -421,7 +421,7 @@ vars = {
'libcxx_revision': '79a2e924d96e2fc1e4b937c42efd08898fa472d7',

# GN CIPD package version.
'gn_version': 'git_revision:fc295f3ac7ca4fe7acc6cb5fb052d22909ef3a8f',
'gn_version': 'git_revision:2e56c317bd8e2bf152cfa2ead6ac5fa476fe28b4',
}

# Only these hosts are allowed for dependencies in this DEPS file.
Expand Down Expand Up @@ -727,7 +727,7 @@ deps = {
'packages': [
{
'package': 'chromium/rts/model/mac-amd64',
'version': 'hLuT4gVcqpeZfALZhISQl3bzHj2UwIa_WzhnNzYnhOgC',
'version': 'yVc-vTWsYEzs3l22SOOsPdO_AWBNR3HP71lX3Q4VQQYC',
},
],
'dep_type': 'cipd',
Expand Down Expand Up @@ -1069,7 +1069,7 @@ deps = {
Var('chromium_git') + '/external/github.com/google/farmhash.git' + '@' + '816a4ae622e964763ca0862d9dbd19324a1eaf45',

'src/third_party/ffmpeg':
Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + 'd151785b5b0ef367e225f8a5702c36d2dccc8bb3',
Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + '53de560ab9b797efa43c7e2643cde1be5dcc2450',

'src/third_party/flac':
Var('chromium_git') + '/chromium/deps/flac.git' + '@' + 'af862024c8c8fa0ae07ced05e89013d881b00596',
Expand Down Expand Up @@ -1421,7 +1421,7 @@ deps = {
},

'src/third_party/perfetto':
Var('android_git') + '/platform/external/perfetto.git' + '@' + '1302b4259684a591a9519ed3f3d3e490554ad05c',
Var('android_git') + '/platform/external/perfetto.git' + '@' + '86b18b837a45380f1b9070cb765ec5864994942c',

'src/third_party/perl': {
'url': Var('chromium_git') + '/chromium/deps/perl.git' + '@' + '6f3e5028eb65d0b4c5fdd792106ac4c84eee1eb3',
Expand Down Expand Up @@ -1642,7 +1642,7 @@ deps = {
Var('chromium_git') + '/external/github.com/gpuweb/cts.git' + '@' + 'aa6dcde554d68ea68684af3e6699541ff6067793',

'src/third_party/webrtc':
Var('webrtc_git') + '/src.git' + '@' + 'a6b138d6b4ef3a5b2c87f899b67f3b5c8dd3c002',
Var('webrtc_git') + '/src.git' + '@' + '699d1a242ecd3ca819293cfa96f5dcf8f5e1b91a',

'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@7499f7d4e8b61b0e3d2a8b6227a55e5cd8dccee6',
'url': 'https://chrome-internal.googlesource.com/chrome/src-internal.git@3bdd0bbcef1c863a758c898f0e212d83a03e5d6b',
'condition': 'checkout_src_internal',
},

Expand Down
10 changes: 10 additions & 0 deletions ash/accessibility/magnifier/docked_magnifier_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "ash/accessibility/magnifier/magnifier_utils.h"
#include "ash/constants/ash_pref_names.h"
#include "ash/host/ash_window_tree_host.h"
#include "ash/keyboard/ui/keyboard_ui_controller.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
#include "ash/session/session_controller_impl.h"
Expand Down Expand Up @@ -279,6 +280,15 @@ void DockedMagnifierController::OnTouchEvent(ui::TouchEvent* event) {
aura::Window* event_root = target->GetRootWindow();
gfx::Point event_screen_point = event->root_location();
::wm::ConvertPointToScreen(event_root, &event_screen_point);

// Ignore touch events on virtual Keyboard, to stabilize docked magnifier.
if (keyboard::KeyboardUIController::Get()->IsEnabled() &&
keyboard::KeyboardUIController::Get()
->GetKeyboardWindow()
->GetBoundsInScreen()
.Contains(event_screen_point))
return;

CenterOnPoint(event_screen_point);
}

Expand Down
15 changes: 11 additions & 4 deletions ash/app_list/views/continue_task_container_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ using views::TableLayout;
namespace ash {
namespace {
// Suggested tasks layout constants.
constexpr int kColumnSpacingClamshell = 8;
constexpr int kColumnInnerSpacingClamshell = 8;
constexpr int kColumnOuterSpacingClamshell = 6;
constexpr int kColumnSpacingTablet = 16;
constexpr int kRowSpacing = 8;
constexpr size_t kMaxFilesForContinueSection = 4;
Expand Down Expand Up @@ -185,16 +186,22 @@ void ContinueTaskContainerView::InitializeTableLayout() {
table_layout_ = SetLayoutManager(std::make_unique<views::TableLayout>());
std::vector<size_t> linked_columns;
for (int i = 0; i < columns_; i++) {
if (i > 0) {
if (i == 0) {
table_layout_->AddPaddingColumn(views::TableLayout::kFixedSize,
kColumnSpacingClamshell);
kColumnOuterSpacingClamshell);
} else {
table_layout_->AddPaddingColumn(views::TableLayout::kFixedSize,
kColumnInnerSpacingClamshell);
}
table_layout_->AddColumn(
views::LayoutAlignment::kStretch, views::LayoutAlignment::kCenter,
/*horizontal_resize=*/1.0f, views::TableLayout::ColumnSize::kFixed,
/*fixed_width=*/0, /*min_width=*/0);
linked_columns.push_back(2 * i);
linked_columns.push_back(2 * i + 1);
}
table_layout_->AddPaddingColumn(views::TableLayout::kFixedSize,
kColumnOuterSpacingClamshell);

table_layout_->LinkColumnSizes(linked_columns);
// Continue section only shows if there are 3 or more suggestions, so there
// are always 2 rows.
Expand Down
10 changes: 10 additions & 0 deletions ash/capture_mode/capture_mode_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5037,6 +5037,16 @@ TEST_F(ProjectorCaptureModeIntegrationTests,
EXPECT_FALSE(controller->is_recording_in_progress());
}

TEST_F(ProjectorCaptureModeIntegrationTests,
ProjectorSessionNeverStartsWhenVideoRecordingIsOnGoing) {
auto* controller = StartCaptureSession(CaptureModeSource::kFullscreen,
CaptureModeType::kVideo);
controller->StartVideoRecordingImmediatelyForTesting();
EXPECT_TRUE(controller->is_recording_in_progress());
EXPECT_FALSE(ProjectorSession::Get()->is_active());
EXPECT_FALSE(ProjectorController::Get()->CanStartNewSession());
}

namespace {

enum AbortReason {
Expand Down
7 changes: 4 additions & 3 deletions ash/capture_mode/video_recording_watcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ VideoRecordingWatcher::VideoRecordingWatcher(
recording_overlay_controller_ =
std::make_unique<RecordingOverlayController>(window_being_recorded_,
GetOverlayWidgetBounds());
ProjectorControllerImpl::Get()->OnRecordingStarted();
}
if (features::IsProjectorEnabled())
ProjectorControllerImpl::Get()->OnRecordingStarted(is_in_projector_mode_);
}

VideoRecordingWatcher::~VideoRecordingWatcher() {
Expand All @@ -254,8 +255,8 @@ void VideoRecordingWatcher::ShutDown() {
recording_overlay_controller_.reset();
dimmers_.clear();

if (is_in_projector_mode_)
ProjectorControllerImpl::Get()->OnRecordingEnded();
if (features::IsProjectorEnabled())
ProjectorControllerImpl::Get()->OnRecordingEnded(is_in_projector_mode_);

window_being_recorded_->RemovePreTargetHandler(this);
TabletModeController::Get()->RemoveObserver(this);
Expand Down
15 changes: 0 additions & 15 deletions ash/constants/ash_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1220,15 +1220,6 @@ const base::Feature kUseAuthsessionAuthentication{
const base::Feature kUseBluetoothSystemInAsh{"UseBluetoothSystemInAsh",
base::FEATURE_DISABLED_BY_DEFAULT};

// Uses the same browser sync consent dialog as Windows/Mac/Linux. Allows the
// user to fully opt-out of browser sync, including marking the IdentityManager
// primary account as unconsented. Requires SyncConsentOptional.
// NOTE: Call UseBrowserSyncConsent() to test the flag, see implementation.
// TODO(https://crbug.com/1246824) Maybe deprecate the flag in favor of
// SyncConsentOptional.
const base::Feature kUseBrowserSyncConsent{"UseBrowserSyncConsent",
base::FEATURE_DISABLED_BY_DEFAULT};

// Use the staging URL as part of the "Messages" feature under "Connected
// Devices" settings.
const base::Feature kUseMessagesStagingUrl{"UseMessagesStagingUrl",
Expand Down Expand Up @@ -1905,12 +1896,6 @@ bool ShouldUseAttachApn() {
base::FeatureList::IsEnabled(kCellularUseAttachApn);
}

bool ShouldUseBrowserSyncConsent() {
// UseBrowserSyncConsent requires SyncConsentOptional.
return base::FeatureList::IsEnabled(kSyncConsentOptional) &&
base::FeatureList::IsEnabled(kUseBrowserSyncConsent);
}

bool ShouldUseV1DeviceSync() {
return !ShouldUseV2DeviceSync() ||
!base::FeatureList::IsEnabled(kDisableCryptAuthV1DeviceSync);
Expand Down
4 changes: 0 additions & 4 deletions ash/constants/ash_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,6 @@ COMPONENT_EXPORT(ASH_CONSTANTS)
extern const base::Feature kUseAuthsessionAuthentication;
COMPONENT_EXPORT(ASH_CONSTANTS)
extern const base::Feature kUseBluetoothSystemInAsh;
// Visible for testing. Call UseBrowserSyncConsent() to check the flag.
COMPONENT_EXPORT(ASH_CONSTANTS)
extern const base::Feature kUseBrowserSyncConsent;
COMPONENT_EXPORT(ASH_CONSTANTS)
extern const base::Feature kUseMessagesStagingUrl;
COMPONENT_EXPORT(ASH_CONSTANTS)
Expand Down Expand Up @@ -651,7 +648,6 @@ COMPONENT_EXPORT(ASH_CONSTANTS) bool IsWindowControlMenuEnabled();
// TODO(michaelpg): Remove after M71 branch to re-enable Play Store by default.
COMPONENT_EXPORT(ASH_CONSTANTS) bool ShouldShowPlayStoreInDemoMode();
COMPONENT_EXPORT(ASH_CONSTANTS) bool ShouldUseAttachApn();
COMPONENT_EXPORT(ASH_CONSTANTS) bool ShouldUseBrowserSyncConsent();
COMPONENT_EXPORT(ASH_CONSTANTS) bool ShouldUseV1DeviceSync();
COMPONENT_EXPORT(ASH_CONSTANTS) bool ShouldUseV2DeviceSync();

Expand Down
4 changes: 4 additions & 0 deletions ash/constants/ash_pref_names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,10 @@ const char kProjectorGalleryOnboardingShowCount[] =
const char kProjectorViewerOnboardingShowCount[] =
"ash.projector.viewerOnboardingShowCount";

// Boolean value for the DeviceLoginScreenWebUILazyLoading device policy.
const char kLoginScreenWebUILazyLoading[] =
"ash.login.LoginScreenWebUILazyLoading";

// NOTE: New prefs should start with the "ash." prefix. Existing prefs moved
// into this file should not be renamed, since they may be synced.

Expand Down
3 changes: 3 additions & 0 deletions ash/constants/ash_pref_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ extern const char kProjectorGalleryOnboardingShowCount[];
COMPONENT_EXPORT(ASH_CONSTANTS)
extern const char kProjectorViewerOnboardingShowCount[];

COMPONENT_EXPORT(ASH_CONSTANTS)
extern const char kLoginScreenWebUILazyLoading[];

} // namespace prefs
} // namespace ash

Expand Down
11 changes: 8 additions & 3 deletions ash/projector/projector_controller_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ bool ProjectorControllerImpl::CanStartNewSession() const {
// TODO(crbug.com/1165435) Add other pre-conditions to starting a new
// projector session.
return IsEligible() && !projector_session_->is_active() &&
client_->IsDriveFsMounted();
client_->IsDriveFsMounted() &&
!CaptureModeController::Get()->is_recording_in_progress();
}

void ProjectorControllerImpl::OnToolSet(const AnnotatorTool& tool) {
Expand Down Expand Up @@ -188,14 +189,18 @@ void ProjectorControllerImpl::MarkKeyIdea() {
ui_controller_->OnKeyIdeaMarked();
}

void ProjectorControllerImpl::OnRecordingStarted() {
void ProjectorControllerImpl::OnRecordingStarted(bool is_in_projector_mode) {
if (!is_in_projector_mode)
return;
ui_controller_->ShowToolbar();
StartSpeechRecognition();
ui_controller_->OnRecordingStateChanged(true /* started */);
metadata_controller_->OnRecordingStarted();
}

void ProjectorControllerImpl::OnRecordingEnded() {
void ProjectorControllerImpl::OnRecordingEnded(bool is_in_projector_mode) {
if (!is_in_projector_mode)
return;
DCHECK(projector_session_->is_active());

StopSpeechRecognition();
Expand Down
9 changes: 5 additions & 4 deletions ash/projector/projector_controller_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ class ASH_EXPORT ProjectorControllerImpl : public ProjectorController,
// Mark a key idea.
void MarkKeyIdea();

// Called by Capture Mode to notify with the state of a projector-initiated
// video recording.
void OnRecordingStarted();
void OnRecordingEnded();
// Called by Capture Mode to notify with the state of a video recording.
// `is_in_projector_mode` indicates whether it's a projector-initiated video
// recording.
void OnRecordingStarted(bool is_in_projector_mode);
void OnRecordingEnded(bool is_in_projector_mode);

// Called by Capture Mode to notify us that a Projector-initiated recording
// session was aborted (i.e. recording was never started) due to e.g. user
Expand Down
6 changes: 3 additions & 3 deletions ash/projector/projector_controller_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ TEST_F(ProjectorControllerTest, RecordingStarted) {
// Verify that |CloseToolbar| in |ProjectorUiController| is called.
EXPECT_CALL(*mock_ui_controller_, ShowToolbar()).Times(1);

controller_->OnRecordingStarted();
controller_->OnRecordingStarted(/*is_in_projector_mode=*/true);
}

TEST_F(ProjectorControllerTest, RecordingEnded) {
Expand All @@ -243,7 +243,7 @@ TEST_F(ProjectorControllerTest, RecordingEnded) {
base::TimeDelta forward_by = start_time - base::Time::Now();
task_environment()->AdvanceClock(forward_by);
controller_->projector_session()->Start("projector_data");
controller_->OnRecordingStarted();
controller_->OnRecordingStarted(/*is_in_projector_mode=*/true);

base::RunLoop runLoop;
controller_->CreateScreencastContainerFolder(base::BindLambdaForTesting(
Expand All @@ -267,7 +267,7 @@ TEST_F(ProjectorControllerTest, RecordingEnded) {
// Screencast file name without extension.
.Append(expected_screencast_name)));

controller_->OnRecordingEnded();
controller_->OnRecordingEnded(/*is_in_projector_mode=*/true);
runLoop.Quit();
}));

Expand Down
3 changes: 2 additions & 1 deletion ash/projector/projector_ui_controller_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ TEST_P(ProjectorUiControllerTest, UmaMetricsTest) {
Shell::Get()->projector_controller()->SetClient(&mock_client);
Shell::Get()->projector_controller()->OnSpeechRecognitionAvailabilityChanged(
SpeechRecognitionAvailability::kAvailable);
Shell::Get()->projector_controller()->OnRecordingStarted();
Shell::Get()->projector_controller()->OnRecordingStarted(
/*is_in_projector_mode=*/true);

histogram_tester.ExpectUniqueSample(
kProjectorToolbarHistogramName,
Expand Down
5 changes: 5 additions & 0 deletions ash/strings/ash_strings_ar.xtb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<translation id="1175572348579024023">التمرير</translation>
<translation id="1178581264944972037">الإيقاف مؤقتًا</translation>
<translation id="1181037720776840403">إزالة</translation>
<translation id="118437560755358292">أدخِل كلمة المرور أو رقم التعريف الشخصي لزيادة مستوى الأمان</translation>
<translation id="118532027333893379">انقر في أي مكان لالتقاط صورة في وضع ملء الشاشة.</translation>
<translation id="1190609913194133056">مركز الإشعارات</translation>
<translation id="1190678134285018527">يجب إعادة الجهاز إلى الإصدار السابق</translation>
Expand Down Expand Up @@ -339,6 +340,7 @@
<translation id="3307642347673023554">تمّ التبديل إلى وضع الكمبيوتر المحمول.</translation>
<translation id="3308453408813785101">سيظل بإمكان <ph name="USER_EMAIL_ADDRESS" /> تسجيل الدخول لاحقًا.</translation>
<translation id="3321628682574733415">رمز أحد الوالدين غير صحيح</translation>
<translation id="3339826665088060472">لقطة الشاشة، أدوات التقاط لقطات الشاشة وتسجيلات الشاشة</translation>
<translation id="3341303451326249809">تم أخذ لقطة الشاشة.</translation>
<translation id="334252345105450327">التقاط لقطة شاشة</translation>
<translation id="3351879221545518001">أنت حاليًا تبث محتوى الشاشة.</translation>
Expand Down Expand Up @@ -395,6 +397,7 @@
<translation id="3606978283550408104">تم توصيل شاشة برايل.</translation>
<translation id="3615926715408477684">سيؤدي تفعيل ميزة بيانات الجوّال إلى تفعيل البلوتوث.</translation>
<translation id="3616883743181209306">تم نقل القائمة إلى أعلى يسار الشاشة.</translation>
<translation id="3619536907358025872">إعدادات تصوير الشاشة</translation>
<translation id="3621202678540785336">الإدخال</translation>
<translation id="3621712662352432595">إعدادات الصوت</translation>
<translation id="3626281679859535460">السطوع</translation>
Expand Down Expand Up @@ -493,6 +496,7 @@
<translation id="4269883910223712419">يمتلك مشرف هذا الجهاز القدرة على ما يلي:</translation>
<translation id="4274537685965975248">‏تم تغيير اختصارات لوحة المفاتيح "Ctrl + Alt + السهم المتّجه للأسفل". لاستخدام مفتاح End، اضغط على المفتاحَين "<ph name="LAUNCHER_KEY_NAME" /> + السهم المتّجه لليمين".</translation>
<translation id="4279490309300973883">النسخ المطابق</translation>
<translation id="4283888303416325161">أدخِل كلمة المرور لزيادة مستوى الأمان</translation>
<translation id="4285498937028063278">إزالة تثبيت</translation>
<translation id="429402653707266969">تبديل مكان شريط الأدوات</translation>
<translation id="4294319844246081198">صباح الخير <ph name="GIVEN_NAME" />،</translation>
Expand Down Expand Up @@ -762,6 +766,7 @@
<translation id="607652042414456612">يمكن لأجهزة بلوتوث القريبة اكتشاف جهاز الكمبيوتر وسيظهر كـ "<ph name="NAME" />" بالعنوان <ph name="ADDRESS" /></translation>
<translation id="6114505516289286752">تم تنزيل ملفات اللغة <ph name="LANGUAGE" /> في ميزة "التعرّف على الكلام"</translation>
<translation id="6119360623251949462"><ph name="CHARGING_STATE" />. <ph name="BATTERY_SAVER_STATE" /></translation>
<translation id="6121838516699723042">تأكيد تنزيل <ph name="FILENAME" /></translation>
<translation id="612734058257491180">‏لا يتوفر "مساعد Google" في جلسة ضيف.</translation>
<translation id="6134259848159370930">يمكنك البحث في الجهاز والتطبيقات والإعدادات والويب.</translation>
<translation id="6137566720514957455">فتح مربع الحوار لإزالة الحساب <ph name="USER_EMAIL_ADDRESS" /></translation>
Expand Down
Loading