1. 25 Apr, 2018 40 commits
    • Dan Harrington's avatar
      Add OfflinePages.DownloadUI.PrefetchedItemHasThumbnail UMA · 43f4559e
      Dan Harrington authored
      This will help us understand how many articles show
      up with a thumbnail in downloads home.
      
      Bug: 794828
      Change-Id: I4576620f877147e0d897e29af11186150ddcf816
      Reviewed-on: https://chromium-review.googlesource.com/1024639Reviewed-by: default avatarCarlos Knippschild <carlosk@chromium.org>
      Reviewed-by: default avatarBrian White <bcwhite@chromium.org>
      Commit-Queue: Dan H <harringtond@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553684}
      43f4559e
    • Daniel Cheng's avatar
      Revert "Enforce user gesture requirement on browser side for WebUI." · 8bdbebbf
      Daniel Cheng authored
      This reverts commit 8839d302.
      
      Reason for revert: causing WebUI renderer kills
      
      Original change's description:
      > Enforce user gesture requirement on browser side for WebUI.
      > 
      > WebContentsImpl now tracks the last time it received an input event that
      > could be considered user interaction. When the browser process receives
      > a WebUI message that requires a user gesture, it checks the WebContents
      > hosting the WebUI to make sure that the user recently interacted with
      > it.
      > 
      > This also cleans up a few incidental bits of code:
      > - RenderWidgetHost no longer prefilters events before notifying the
      >   delegate. This exposed some broken event filtering, tracked at
      >   https://crbug.com/827659.
      > - Since the delegate method no longer prefilters input events,
      >   RenderWidgetHostDelegate::OnUserInteraction() is now named
      >   RenderWidgetHostDelegate::DidReceiveInputEvent().
      > - The IPC message used to pass WebUI messages from the renderer to the
      >   browser sends the source URL. However, this requires trusting the
      >   untrustworthy renderer to not lie about the URL. Instead, just use
      >   GetLastCommittedURL().
      > 
      > Bug: 823864
      > Change-Id: I687776c8c7f7f93f78c968dd432b1674d65629c0
      > Reviewed-on: https://chromium-review.googlesource.com/1023174
      > Commit-Queue: Daniel Cheng <dcheng@chromium.org>
      > Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
      > Reviewed-by: Lei Zhang <thestig@chromium.org>
      > Reviewed-by: Ilya Sherman <isherman@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#553001}
      
      TBR=dcheng@chromium.org,thestig@chromium.org,isherman@chromium.org,alexmos@chromium.org
      
      # Not skipping CQ checks because original CL landed > 1 day ago.
      
      Bug: 823864
      Change-Id: I7e6266f5e0d87197a76f2f201faef13bce129734
      Reviewed-on: https://chromium-review.googlesource.com/1028335
      Commit-Queue: Daniel Cheng <dcheng@chromium.org>
      Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553683}
      8bdbebbf
    • Albert Chaulk's avatar
      [Chromecast] Update extension request handler to load files too · 63162150
      Albert Chaulk authored
      If we recieve a request for an extension that doesn't have a 'cast_url'
      key present defer to the normal extension request processor to load
      the files from disk
      
      This is also required to load background pages (as it is from disk)
      
      Bug: b/73768170
      Test: Load extension that loads from disk, verify fallback occurs
      Change-Id: I7bf477f92dbebfd37077ed417e12d17a03d35308
      Reviewed-on: https://chromium-review.googlesource.com/934924Reviewed-by: default avatarAlex Sakhartchouk <alexst@chromium.org>
      Commit-Queue: Albert Chaulk <achaulk@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553682}
      63162150
    • Emircan Uysaler's avatar
      Add higher resolution input for VEAUnittest running on Mac · 85a7e025
      Emircan Uysaler authored
      When kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder is set,
      VideoToolbox doesn't create encoder sessions below 640x384 resolution. From the
      spec, this indicates that it is falling to SW implementation. Since we want to
      actually test HW backed cases, we should input a higher resolution video for
      Mac.
      
      Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel
      Change-Id: Ie10cd533473ffca501f80772fffe27644004e123
      Reviewed-on: https://chromium-review.googlesource.com/1019733
      Commit-Queue: Emircan Uysaler <emircan@chromium.org>
      Reviewed-by: default avatarKuang-che Wu <kcwu@chromium.org>
      Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553681}
      85a7e025
    • Mounir Lamouri's avatar
      Reset picture_in_picture_allowed_in_fullscreen_ when fullscreen_player_ is reset. · b2cea423
      Mounir Lamouri authored
      This is an opportunistic fix for a crash that we were not able to
      reproduce locally.
      
      Bug: 833360
      Change-Id: If376405dd75591bcbbb47273e2330027de8ebd0d
      Reviewed-on: https://chromium-review.googlesource.com/1028359Reviewed-by: default avatarFrank Liberato <liberato@chromium.org>
      Commit-Queue: Mounir Lamouri <mlamouri@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553680}
      b2cea423
    • Sammie Quon's avatar
      splitview: Remove window shadows when window is snapped. · 55741866
      Sammie Quon authored
      Test: ash_unittests SplitViewControllerTest.ShadowDisappearsWhenSnapped
      Bug: 818295
      Change-Id: Icb1ed1d1c03e00cd74cf9d60986d6853b3160ea5
      Reviewed-on: https://chromium-review.googlesource.com/988935
      Commit-Queue: Sammie Quon <sammiequon@chromium.org>
      Reviewed-by: default avatarScott Violet <sky@chromium.org>
      Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553679}
      55741866
    • David Bokan's avatar
      Correct OverflowClipRect() for root scroller · 8c76d127
      David Bokan authored
      When a layout object is the effective root scroller, the
      OverflowClipRect uses the ViewRect rather than computing the padding box
      as usual. This is because the padding box won't expand when the URL bar
      is hidden.
      
      Unfortunately in the root scroller case we forget to set the passed in
      location. This patch adds that so the rect is in the correct coordinate
      space. Additionally, this all works only if the box set as the effective
      root scroller has no border since the OverflowClipRect uses the padding
      box. I've updated the root scroller to ensure the padding box matches
      the viewport rect.
      
      Ideally we'd just return View()->OverflowClipRect - which does remember
      to set the location - in LayoutBox but this could lead to an infinite
      recursion as that calls LayoutBox::OverflowClipRect if the ViewRect is
      empty. Thus, we call ViewRect directly.
      
      Bug: 816161
      Change-Id: I2f622ff0c25e58373955e1d0e22d54e254e134ff
      Reviewed-on: https://chromium-review.googlesource.com/1026517Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
      Commit-Queue: David Bokan <bokan@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553678}
      8c76d127
    • Mina Almasry's avatar
      Don't delay audio playback in non-kModeSyncPts · c5501e8e
      Mina Almasry authored
      Bug: b/74612005
      Test: On device unittests
      Change-Id: I628a3ad8563fb1fb35ea783f73f24a62e497091a
      Reviewed-on: https://chromium-review.googlesource.com/1028560Reviewed-by: default avatarKenneth MacKay <kmackay@chromium.org>
      Commit-Queue: Mina Almasry <almasrymina@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553677}
      c5501e8e
    • v8-autoroll's avatar
      Update V8 to version 6.8.73. · 828a2eee
      v8-autoroll authored
      Summary of changes available at:
      https://chromium.googlesource.com/v8/v8/+log/9990de59..96706998
      
      Please follow these instructions for assigning/CC'ing issues:
      https://github.com/v8/v8/wiki/Triaging%20issues
      
      Please close rolling in case of a roll revert:
      https://v8-roll.appspot.com/
      This only works with a Google account.
      
      CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;luci.chromium.try:android_optional_gpu_tests_rel
      
      TBR=hablich@chromium.org,machenbach@chromium.org,kozyatinskiy@chromium.org,sergiyb@chromium.org
      
      Change-Id: If2540c38879b3438082a7569b931945f7d00bb75
      Reviewed-on: https://chromium-review.googlesource.com/1027803Reviewed-by: default avatarv8 autoroll <v8-autoroll@chromium.org>
      Commit-Queue: v8 autoroll <v8-autoroll@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553676}
      828a2eee
    • Henrik Boström's avatar
      RTCRtpReceiverInternal destructor traits ensuring delete on main thread. · 0ec0e885
      Henrik Boström authored
      The internal class owns AdapterRefs which have to be destructed on the
      main thread. As such, the last reference to the internal class had to
      be freed on the main thread. In flaky cases, when tasks were posted to
      the signaling thread, an operation performed and a task posted back to
      the main thread - the main thread would finish before the signaling
      thread task and the last reference to the internal class would be
      released on the signaling thread, causing DCHECK crashes at
      ~AdapterRef for being on the wrong thread.
      
      With destructor traits, if we are not already on the main thread we
      post to the main thread and delete RTCRtpReceiverInternal there.
      
      The TearDown of RTCRtpReceiverTest is updated to ensure that any pending
      tasks get a chance to execute, in case the signaling thread was not
      finished yet or else the destructor posted to the main thread does not
      get a chance to execute and the test would flakily leak.
      
      Before this CL: Flake's symptoms could be reproduced by adding a thread
      sleep at RTCRtpReceiverInternal::GetStatsOnSignalingThread. After this CL:
      Unable to repro flake.
      
      Bug: 827450
      Change-Id: Icdfdd3e22c3e86308ee7911e67eff43590fde581
      Reviewed-on: https://chromium-review.googlesource.com/1013492
      Commit-Queue: Henrik Boström <hbos@chromium.org>
      Reviewed-by: default avatarWez <wez@chromium.org>
      Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553675}
      0ec0e885
    • Vlad Tsyrklevich's avatar
      [CFI] Reduce scope of blacklist entries · abed4fc1
      Vlad Tsyrklevich authored
      The FunctorTraits blacklist entry blacklisted thousands of call sites
      unrelated to the specific failing test cases. By limiting the scope of
      the blacklist entry it exposes that the majority of the previously
      blacklisted call sites were actually not checked anyway due to them being
      pointer-to-member calls.
      
      Change-Id: I98491b2cb704b607efa2b7cbf11b942fef218d9c
      Reviewed-on: https://chromium-review.googlesource.com/1028378Reviewed-by: default avatarPeter Collingbourne <pcc@chromium.org>
      Commit-Queue: Peter Collingbourne <pcc@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553674}
      abed4fc1
    • Michael Moss's avatar
      Manually update trunk VERSION from 3407.0 to 3408.0 · 4f2d89f5
      Michael Moss authored
      This brings things back in sync after a failed branching.
      
      TBR=govind@google.com
      NOTRY=true
      
      Bug: 825063
      Change-Id: Ia1b98d068b6c38cc1bb0337abe9492e723c8e70d
      Reviewed-on: https://chromium-review.googlesource.com/1028611Reviewed-by: default avatarMichael Moss <mmoss@chromium.org>
      Commit-Queue: Michael Moss <mmoss@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553673}
      4f2d89f5
    • Erik Luo's avatar
      Whitelist common, side-effect-free IDL callbacks · 4eb41bf3
      Erik Luo authored
      Marks common callbacks that do not produce JS-observable side-effects
      on: Document, DOMTokenList, Element, Node, Window, HTMLElement.
      
      Note that several Window properties are lazy and need extra V8 support
      to be whitelisted.
      
      Bug: 829571
      Change-Id: I9ad50c1ca9b8c260ec898bc94423286c142d6bec
      Reviewed-on: https://chromium-review.googlesource.com/1024863Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
      Commit-Queue: Erik Luo <luoe@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553672}
      4eb41bf3
    • Gabriel Charette's avatar
      Migrate MessageLoop::current() to MessageLoopCurrent in /ui/ozone/platform/drm · 5e8b57ed
      Gabriel Charette authored
      These changes were scripted as part of the effort to restrict exposure of the
      raw MessageLoop*.
      
      Note that many static methods exposed on MessageLoopCurrent are also deprecated
      so it is very well possible that this is migrating to an already deprecated
      method.
      
      The goal of this pass is to reduce usage of MessageLoop::current() (and
      ultimately make it impossible to obtain the MessageLoop* statically).
      
      As such I will not edit this CL unless the script did something logically wrong.
      I defer to owners to fix highlighted usage of already deprecated APIs.
      
      Possible script screw ups / things to look out for in this review:
       - Storing MessageLoopCurrent in a MessageLoop* variable or comparing it against
         one (I will go over that in a separate pass).
      
      Includes should have been stripped if that was the last usage of message_loop.h
      in that file.
      
      Please CQ if LGTY
      
      This CL was uploaded by git cl split.
      
      TBR=dnicoara@chromium.org
      
      Bug: 825327
      Change-Id: I2d0a66205586d87c27d7ba8b87a7d4f4416f1728
      Reviewed-on: https://chromium-review.googlesource.com/1024446Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
      Commit-Queue: Gabriel Charette <gab@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553671}
      5e8b57ed
    • Jonathan Backer's avatar
      Don't force virtualized contexts for tests · f2776921
      Jonathan Backer authored
      We already look at workarounds. If tests fail without virtualized
      contexts we should get the workarounds properly populated.
      
      Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
      Change-Id: I22a8c47260c84bff4b8c8eb2ec457b704eed9e36
      Reviewed-on: https://chromium-review.googlesource.com/1028213Reviewed-by: default avatarkylechar <kylechar@chromium.org>
      Commit-Queue: Jonathan Backer <backer@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553670}
      f2776921
    • Michael Lippautz's avatar
      [oilpan] Narrow lock scopes for cross-thread persistents · 41715dee
      Michael Lippautz authored
      We only need to lock those while iterating persistents and while processing
      weak persistents.
      
      Bug: chromium:836306
      Change-Id: I788d349672c9d9550e3889c13ec4b79b5e5c6ee9
      Reviewed-on: https://chromium-review.googlesource.com/1026675
      Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
      Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553669}
      41715dee
    • Robert Liao's avatar
      Disable DevToolsManagerDelegateTest Tests That Rely on Maximization for Mac · 28e33c40
      Robert Liao authored
      MacViews does not yet implement maximized windows and a trivial
      implementation doesn't seem to work.
      
      BUG=834754,836327
      
      Change-Id: I4fd6fbd4295134053cc58d028d0c2397088150a8
      Reviewed-on: https://chromium-review.googlesource.com/1026350Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
      Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
      Commit-Queue: Robert Liao <robliao@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553668}
      28e33c40
    • Rohit Rao's avatar
      [ios] Fixes UKMTestCase when UIRefresh is enabled. · dcb7c8ab
      Rohit Rao authored
      BUG=818732
      
      Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
      Change-Id: Ie1639a9112b16aeade373449e75934c8e63fedb7
      Reviewed-on: https://chromium-review.googlesource.com/1027900
      Commit-Queue: Rohit Rao <rohitrao@chromium.org>
      Reviewed-by: default avatarPeter Lee <pkl@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553667}
      dcb7c8ab
    • Nicolas Pena's avatar
      Move webtiming-resolution, webtiming-ssl to wpt · 5e2d9bc8
      Nicolas Pena authored
      This CL changes the webtiming-resolution to test that resolution is
      larger than 10 microseconds, instead of testing for a specific value.
      This allows the test to no longer be flaky and to be moved to wpt.
      
      The webtiming-ssl test is moved to WPT, using an https connection to
      ensure that secureConnectionStart is correctly defined.
      
      Bug: chromium:801341
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
      Change-Id: I4d31faa08d00251098f3dc648c794d80bbcc2f22
      Reviewed-on: https://chromium-review.googlesource.com/867310
      Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
      Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
      Reviewed-by: default avatarTimothy Dresser <tdresser@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553666}
      5e2d9bc8
    • Christian Fremerey's avatar
      [Video Capture Android] Support facing mode and list user-facing first · 62e590c5
      Christian Fremerey authored
      On Android, the facing mode of capture devices is currently reported only in
      form of a string appended to the device name. This was probably a legacy
      solution before facing mode has become an official field that can be queried.
      
      This CL fills the facing mode field so that it gets reported correctly.
      It then sorts device infos reported during device enumeration such that
      user-facing devices get listed first. This has the effect of making them
      preferred over back-facing cameras in case no facing-related constraints are
      given.
      
      Bug: 814298
      Change-Id: I366475903693401c64ed7ff3f65d39536d6c13ba
      Reviewed-on: https://chromium-review.googlesource.com/1025213Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
      Reviewed-by: default avatarWeiyong Yao <braveyao@chromium.org>
      Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
      Commit-Queue: Christian Fremerey <chfremer@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553665}
      62e590c5
    • Christopher Grant's avatar
      VR: Clean up selection of hit-testable elements. · cd8d48e7
      Christopher Grant authored
      This furthers previous lifecycle framework cleanup, and fixes an
      outstanding technical-debt bug in the process.
      
      BUG=768079
      R=ymalik
      
      Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr
      Change-Id: I6743ed68e16f437d68ccc27849f3694af347617a
      Reviewed-on: https://chromium-review.googlesource.com/1015645
      Commit-Queue: Christopher Grant <cjgrant@chromium.org>
      Reviewed-by: default avatarYash Malik <ymalik@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553664}
      cd8d48e7
    • Luum Habtemariam's avatar
      Modifying CupsPrinters users APIs · e0c32460
      Luum Habtemariam authored
      CupsPrinters is becoming a BCKS. This change modifies services using it
      to create and store handles to it correctly.
      
      BUG=chromium:829492
      TEST=manually ensured behavior unchanged
      
      Change-Id: Ibca680fd3b29314b38a72288ed28f6b0f2dca42e
      Reviewed-on: https://chromium-review.googlesource.com/998612Reviewed-by: default avatarYusuke Sato <yusukes@chromium.org>
      Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
      Reviewed-by: default avatarSean Kau <skau@chromium.org>
      Commit-Queue: Luum Habtemariam <luum@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553663}
      e0c32460
    • Paul Jensen's avatar
      [Cronet] Add stamp to api.txt to prevent accidental bulk renames modifying API · 333a5272
      Paul Jensen authored
      Without a stamp a bulk rename could modify the Cronet API but pass through the
      API static checks.  With the stamp, edits to api.txt must be done via update_api.py
      which enforces the static checks.
      
      Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
      Change-Id: I01040c5e377bc6a0e8831c2bab30da5d460d6ae3
      Reviewed-on: https://chromium-review.googlesource.com/1025644Reviewed-by: default avatarAndrei Kapishnikov <kapishnikov@chromium.org>
      Commit-Queue: Paul Jensen <pauljensen@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553662}
      333a5272
    • Becky Zhou's avatar
      [EoC] Add overflow menu to the toolbar V1 · 60713be4
      Becky Zhou authored
      Add overflow menu button and options to open settings and send feedback
      on the toolbar. The button will be shown on bottom sheet opened and
      hidden on sheet closed.
      
      Bug: 831782
      Change-Id: I37f9290b914f1adec06a3617e8c0a1fb54b2ccd3
      Reviewed-on: https://chromium-review.googlesource.com/1022952
      Commit-Queue: Becky Zhou <huayinz@chromium.org>
      Reviewed-by: default avatarBernhard Bauer <bauerb@chromium.org>
      Reviewed-by: default avatarTheresa <twellington@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553661}
      60713be4
    • skia-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com's avatar
      Roll src/third_party/skia/ 77e95f706..27988f76b (3 commits) · 89ad97cc
      https://skia.googlesource.com/skia.git/+log/77e95f7067e3..27988f76b25e
      
      $ git log 77e95f706..27988f76b --date=short --no-merges --format='%ad %ae %s'
      2018-04-25 skcms-skia-autoroll Roll skia/third_party/skcms 289a2a7..86807d3 (1 commits)
      2018-04-25 robertphillips Refactor GaussianBlur
      2018-04-25 skcms-skia-autoroll Roll skia/third_party/skcms e19e9b9..289a2a7 (1 commits)
      
      Created with:
        roll-dep src/third_party/skia
      
      
      The AutoRoll server is located here: https://autoroll.skia.org
      
      Documentation for the AutoRoller is here:
      https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
      
      If the roll is causing failures, please contact the current sheriff, who should
      be CC'd on the roll, and stop the roller if necessary.
      
      
      CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
      TBR=stani@chromium.org
      
      Change-Id: I785e7882845c6f1df04114e5f871f0a62cc2e901
      Reviewed-on: https://chromium-review.googlesource.com/1028221
      Commit-Queue: skia-chromium-autoroll <skia-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
      Reviewed-by: default avatarskia-chromium-autoroll <skia-chromium-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
      Cr-Commit-Position: refs/heads/master@{#553660}
      89ad97cc
    • Derek Cheng's avatar
      [Cast MRP] Add a flag to connect to (test) devices with fixed ip. · 44aa3c0d
      Derek Cheng authored
      This flag is needed for the E2E tests to continue functioning as Cast
      discovery is moved to the browser side.
      
      The flag name is media-router-cast-device-ips, and the value is a
      comma-separated list of IP endpoints of the Cast devices. The port
      number can be omitted, and will default to 8009 in that case.
      
      Bug: 698940
      Change-Id: I1cf9b4ebc7c63f53ed811002eb917af137e62b74
      Reviewed-on: https://chromium-review.googlesource.com/1024237
      Commit-Queue: Derek Cheng <imcheng@chromium.org>
      Reviewed-by: default avatarBrandon Tolsch <btolsch@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553659}
      44aa3c0d
    • Dmitry Skiba's avatar
      Overhaul MemoryUma and report pressure from services. · 2153a8d7
      Dmitry Skiba authored
      MemoryUma class reports 3 memory pressure related metrics, but there
      are issues with them (see the bug), plus metrics are reported only for
      the browser process.
      
      We need memory pressure metrics for services too, in order to decide
      best ways of handling low memory situations.
      
      This CL deprecates the following metrics:
      
      * MemoryAndroid.NotificationBackground
      * MemoryAndroid.NotificationForeground
      * MemoryAndroid.LowMemoryTimeBetween
      
      and adds reporting of the following new metrics:
      
      * Android.MemoryPressureNotification.Browser
      * Android.MemoryPressureNotification.ChildService
      
      Bug: 834529
      Change-Id: If859958ce7adeeb6431f890dea2ffd7a3de8a4f1
      Reviewed-on: https://chromium-review.googlesource.com/1013077
      Commit-Queue: Dmitry Skiba <dskiba@chromium.org>
      Reviewed-by: default avatarYaron Friedman <yfriedman@chromium.org>
      Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553658}
      2153a8d7
    • Andrey Lushnikov's avatar
      headless: create incognito profiles with Target.createBrowserContext · 63246108
      Andrey Lushnikov authored
      This patch starts creating off-the-record browser contexts in response
      to the Target.createBrowserContext() command.
      
      This should make no difference to the users, but has a few benefits for
      us:
      - alignes with the non-headless design of Target.createBrowserContext()
        method.
      - avoids issues with cookie persistance (see BUG)
      - saves some CPU cycles since we don't hit SQLite any more
      
      BUG=836075
      R=dgozman
      
      Change-Id: I1d33c37e72bc9a2745eda0efae9947f94386417b
      Reviewed-on: https://chromium-review.googlesource.com/1025402
      Commit-Queue: Andrey Lushnikov <lushnikov@chromium.org>
      Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
      Reviewed-by: default avatarAlex Clarke <alexclarke@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553657}
      63246108
    • Gabriel Charette's avatar
      Migrate MessageLoop::current() to MessageLoopCurrent in /components/dom_distiller · bb23fc7a
      Gabriel Charette authored
      These changes were scripted as part of the effort to restrict exposure of the
      raw MessageLoop*.
      
      Note that many static methods exposed on MessageLoopCurrent are also deprecated
      so it is very well possible that this is migrating to an already deprecated
      method.
      
      The goal of this pass is to reduce usage of MessageLoop::current() (and
      ultimately make it impossible to obtain the MessageLoop* statically).
      
      As such I will not edit this CL unless the script did something logically wrong.
      I defer to owners to fix highlighted usage of already deprecated APIs.
      
      Possible script screw ups / things to look out for in this review:
       - Storing MessageLoopCurrent in a MessageLoop* variable or comparing it against
         one (I will go over that in a separate pass).
      
      Includes should have been stripped if that was the last usage of message_loop.h
      in that file.
      
      Please CQ if LGTY
      
      This CL was uploaded by git cl split.
      
      TBR=wychen@chromium.org
      
      Bug: 825327
      Change-Id: I54dafd02e4631007e7ea15efff66e91f68063a3b
      Reviewed-on: https://chromium-review.googlesource.com/1024656Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
      Commit-Queue: Gabriel Charette <gab@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553656}
      bb23fc7a
    • Gabriel Charette's avatar
      Migrate MessageLoop::current() to MessageLoopCurrent in test_browser_thread_bundle.cc · 32870324
      Gabriel Charette authored
      The scripted change in patch set 1 was incorrect as it didn't consider that
      TestBrowserThread's constructor is receiving a MessageLoop*.
      
      Thankfully, as of recent changes to BrowserThreadImpl/TestBrowserThread this
      is no longer necessary.
      
      Update TestBrowserThread to not require a MessageLoop* and use this to get
      rid of direct MessageLoop usage in TestBrowserThreadBundle altogether :)
      
      This CL was uploaded by git cl split (originally).
      
      R=tommi@chromium.org
      
      Bug: 825327
      Change-Id: I6e529c7a2547bcfa7ae3ee9b017da91f3d068514
      Reviewed-on: https://chromium-review.googlesource.com/1024433
      Commit-Queue: Gabriel Charette <gab@chromium.org>
      Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
      Reviewed-by: default avatarTommi <tommi@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553655}
      32870324
    • Gabriel Charette's avatar
      Migrate MessageLoop::current() to MessageLoopCurrent in... · d6009a71
      Gabriel Charette authored
      Migrate MessageLoop::current() to MessageLoopCurrent in /chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc
      
      These changes were scripted as part of the effort to restrict exposure of the
      raw MessageLoop*.
      
      Note that many static methods exposed on MessageLoopCurrent are also deprecated
      so it is very well possible that this is migrating to an already deprecated
      method.
      
      The goal of this pass is to reduce usage of MessageLoop::current() (and
      ultimately make it impossible to obtain the MessageLoop* statically).
      
      As such I will not edit this CL unless the script did something logically wrong.
      I defer to owners to fix highlighted usage of already deprecated APIs.
      
      Possible script screw ups / things to look out for in this review:
       - Storing MessageLoopCurrent in a MessageLoop* variable or comparing it against
         one (I will go over that in a separate pass).
      
      Includes should have been stripped if that was the last usage of message_loop.h
      in that file.
      
      Please CQ if LGTY
      
      This CL was uploaded by git cl split.
      
      TBR=bartfab@chromium.org
      
      Bug: 825327
      Change-Id: I989f21cb92c8cabe876d054e56bdbe03f0b6f0d6
      Reviewed-on: https://chromium-review.googlesource.com/1024767Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
      Commit-Queue: Gabriel Charette <gab@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553654}
      d6009a71
    • Wez's avatar
      Ignore WM_QUIT messages handled by MessagePumpForUI. · b26918c5
      Wez authored
      WM_QUIT messages are intended to be used internally by applications to
      exit message-pumping loops built using the GetMessage() API.
      
      Chromium MessageLoop/RunLoop have a common cross-platform Quit()
      mechanism, and much of our code assumes that loops will run until we
      explicitly ask them to Quit(), so we have no need to process WM_QUIT.
      
      We might see WM_QUIT messages injected by other applications, for some
      reason, and some code we run will use a GetMessage() loop and exit that
      via PostQuitMessage(). If a nested GetMessage() loop triggers multiple
      PostQuitMessage() calls before returning then we may end up with our
      MessagePumpForUI receiving WM_QUIT unintentionally.
      
      Bug: 720078
      Change-Id: I11df406ab4fd1d0a3b56899bf1a710ef51c048e9
      Reviewed-on: https://chromium-review.googlesource.com/1020452
      Commit-Queue: Wez <wez@chromium.org>
      Reviewed-by: default avatarScott Violet <sky@chromium.org>
      Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553653}
      b26918c5
    • Philip Rogers's avatar
      [RLS] Avoid full tree rebuilds on hit testing clip changes · 26e25729
      Philip Rogers authored
      This is a revert of [1] which caused performance regressions. This patch
      reimplements a solution that avoids full tree rebuilds when only hit
      testing clip values change in the clip tree.
      
      Typically, when property nodes are updated, we force a full tree
      rebuild if nodes are created or destroyed, but not if node values are
      simply updated. Clip nodes are an exception to this because changing
      their values ends up causing a full tree rebuild. The hit testing clip
      rect (aka clip_rect_excluding_overlay_scrollbars) is different though,
      and does not need to force a full tree rebuild when it changes. This
      patch special-cases the hit testing clip rects to avoid a full tree
      rebuild. When overlay scrollbars hide or appear, the hit testing
      clip values change but a full tree rebuild is not needed.
      
      [1] https://crrev.com/86d1cc1b33260b95367afdedb6195c842dc8e5c0
      
      Bug: 823999, 830746, 830771
      Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
      Change-Id: I7ab426aaead0c87a1aedf0980648505d82d40215
      Reviewed-on: https://chromium-review.googlesource.com/1026941Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
      Commit-Queue: Philip Rogers <pdr@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553652}
      26e25729
    • Gabriel Charette's avatar
      Migrate MessageLoop::current() to MessageLoopCurrent in... · 7af3897b
      Gabriel Charette authored
      Migrate MessageLoop::current() to MessageLoopCurrent in /content/renderer/media/stream/media_stream_audio_processor_unittest.cc
      
      These changes were scripted as part of the effort to restrict exposure of the
      raw MessageLoop*.
      
      Note that many static methods exposed on MessageLoopCurrent are also deprecated
      so it is very well possible that this is migrating to an already deprecated
      method.
      
      The goal of this pass is to reduce usage of MessageLoop::current() (and
      ultimately make it impossible to obtain the MessageLoop* statically).
      
      As such I will not edit this CL unless the script did something logically wrong.
      I defer to owners to fix highlighted usage of already deprecated APIs.
      
      Possible script screw ups / things to look out for in this review:
       - Storing MessageLoopCurrent in a MessageLoop* variable or comparing it against
         one (I will go over that in a separate pass).
      
      Includes should have been stripped if that was the last usage of message_loop.h
      in that file.
      
      Please CQ if LGTY
      
      This CL was uploaded by git cl split.
      
      TBR=aluebs@chromium.org
      
      Bug: 825327
      Change-Id: I9f324105a770fa05c8a0c621eaf21a58664d5447
      Reviewed-on: https://chromium-review.googlesource.com/1024796Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
      Commit-Queue: Gabriel Charette <gab@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553651}
      7af3897b
    • Antonio Gomes's avatar
      fixup! [ozone/wayland] Add clipboard support · af25de26
      Antonio Gomes authored
      This CL is a fixup of [1] and also reverts [2], making
      all ozone_unittests run on linux.chromeos bots, without any skips,
      for both xdg_v5 and xdg_v6 shell implementations.
      
      Basically, CL brings some important code out of DCHECK. It was
      not affecting me locally, because I either build with is_debug
      or dcheck_always_on.
      
      [1] https://crrev.com/c/976461
      [2] https://crrev.com/c/1027030
      
      R=rjkroege@chromium.org
      TEST=ozone_unittests
      
      BUG=578890
      
      Change-Id: I18092d09df85e7aa78b85d208ba372504cd8ede9
      Reviewed-on: https://chromium-review.googlesource.com/1028030Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
      Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
      Cr-Commit-Position: refs/heads/master@{#553650}
      af25de26
    • Luke Halliwell's avatar
      Add alexst to chromecast/OWNERS · ae2200a8
      Luke Halliwell authored
      Bug: None
      Change-Id: I35be980d4b325f804ae4cb49b471bbd5ef55d6e9
      Reviewed-on: https://chromium-review.googlesource.com/1028134Reviewed-by: default avatarAlex Sakhartchouk <alexst@chromium.org>
      Reviewed-by: default avatarStephen Lanham <slan@chromium.org>
      Commit-Queue: Alex Sakhartchouk <alexst@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553649}
      ae2200a8
    • Gabriel Charette's avatar
      Migrate MessageLoop::current() to MessageLoopCurrent in /media · 92fe7d11
      Gabriel Charette authored
      These changes were scripted as part of the effort to restrict exposure of the
      raw MessageLoop*.
      
      Note that many static methods exposed on MessageLoopCurrent are also deprecated
      so it is very well possible that this is migrating to an already deprecated
      method.
      
      The goal of this pass is to reduce usage of MessageLoop::current() (and
      ultimately make it impossible to obtain the MessageLoop* statically).
      
      As such I will not edit this CL unless the script did something logically wrong.
      I defer to owners to fix highlighted usage of already deprecated APIs.
      
      Possible script screw ups / things to look out for in this review:
       - Storing MessageLoopCurrent in a MessageLoop* variable or comparing it against
         one (I will go over that in a separate pass).
      
      Includes should have been stripped if that was the last usage of message_loop.h
      in that file.
      
      Please CQ if LGTY
      
      This CL was uploaded by git cl split.
      
      R=wolenetz@chromium.org
      
      Bug: 825327
      Change-Id: I7b560649fba9f86c99d259101bc7abc2434f294d
      Reviewed-on: https://chromium-review.googlesource.com/1024794
      Commit-Queue: Gabriel Charette <gab@chromium.org>
      Reviewed-by: default avatarMatthew Wolenetz <wolenetz@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553648}
      92fe7d11
    • Gabriel Charette's avatar
      Migrate MessageLoop::current() to MessageLoopCurrent in /components/spellcheck · 21ff8048
      Gabriel Charette authored
      These changes were scripted as part of the effort to restrict exposure of the
      raw MessageLoop*.
      
      Note that many static methods exposed on MessageLoopCurrent are also deprecated
      so it is very well possible that this is migrating to an already deprecated
      method.
      
      The goal of this pass is to reduce usage of MessageLoop::current() (and
      ultimately make it impossible to obtain the MessageLoop* statically).
      
      As such I will not edit this CL unless the script did something logically wrong.
      I defer to owners to fix highlighted usage of already deprecated APIs.
      
      Possible script screw ups / things to look out for in this review:
       - Storing MessageLoopCurrent in a MessageLoop* variable or comparing it against
         one (I will go over that in a separate pass).
      
      Includes should have been stripped if that was the last usage of message_loop.h
      in that file.
      
      Please CQ if LGTY
      
      This CL was uploaded by git cl split.
      
      TBR=groby@chromium.org
      
      Bug: 825327
      Change-Id: I7b103879e33e4c71534ca16b1270949ceb70ce9b
      Reviewed-on: https://chromium-review.googlesource.com/1024657Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
      Commit-Queue: Gabriel Charette <gab@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553647}
      21ff8048
    • Gabriel Charette's avatar
      Migrate MessageLoop::current() to MessageLoopCurrent in /components/wifi · d6cc6adc
      Gabriel Charette authored
      These changes were scripted as part of the effort to restrict exposure of the
      raw MessageLoop*.
      
      Note that many static methods exposed on MessageLoopCurrent are also deprecated
      so it is very well possible that this is migrating to an already deprecated
      method.
      
      The goal of this pass is to reduce usage of MessageLoop::current() (and
      ultimately make it impossible to obtain the MessageLoop* statically).
      
      As such I will not edit this CL unless the script did something logically wrong.
      I defer to owners to fix highlighted usage of already deprecated APIs.
      
      Possible script screw ups / things to look out for in this review:
       - Storing MessageLoopCurrent in a MessageLoop* variable or comparing it against
         one (I will go over that in a separate pass).
      
      Includes should have been stripped if that was the last usage of message_loop.h
      in that file.
      
      Please CQ if LGTY
      
      This CL was uploaded by git cl split.
      
      TBR=mef@chromium.org
      
      Bug: 825327
      Change-Id: I2dc4e772428c81ac04ee0be710b65ce8b8d897d5
      Reviewed-on: https://chromium-review.googlesource.com/1024476Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
      Commit-Queue: Gabriel Charette <gab@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553646}
      d6cc6adc
    • Kevin Schoedel's avatar
      Modify chromecast gesture configuration and fling. · dd23dc39
      Kevin Schoedel authored
      Use VelocityTracker::Strategy::INT1, and scale down the initial fling velocity.
      
      Bug: b/77490018
      Test: manual on screen
      Change-Id: Icf5dbfaba5810a935bdc105a894e99bef1b5ad03
      Reviewed-on: https://chromium-review.googlesource.com/1028474
      Commit-Queue: Kevin Schoedel <kpschoedel@chromium.org>
      Reviewed-by: default avatarAlex Sakhartchouk <alexst@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#553645}
      dd23dc39