1. 26 Mar, 2018 40 commits
    • Yoshifumi Inoue's avatar
      Rename HonorEditingBoundaryAtOr{Before,After}() to... · a964717c
      Yoshifumi Inoue authored
      Rename HonorEditingBoundaryAtOr{Before,After}() to Adjust{Back,Forward}PositionToAvoidCrossingEditingBoundaries()
      
      This patch renames |HonorEditingBoundaryAtOr{Before,After}()| to
      |Adjust{Back,Forward}PositionToAvoidCrossingEditingBoundaries()| to follow
      |SelectionAfjuster::AdjustSelecitonToAvoidCrossingEditingBoundaries()| for
      improving readability.
      
      
      Bug: 824687
      Change-Id: I156c09e884ea8ff805e920cdef928e473f7cb420
      Reviewed-on: https://chromium-review.googlesource.com/977343Reviewed-by: default avatarYoichi Osato <yoichio@chromium.org>
      Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545759}
      a964717c
    • Yuta Kitamura's avatar
      Rename WebFrameScheduler to FrameScheduler. · 0144aa84
      Yuta Kitamura authored
      This patch drops "Web" from WebFrameScheduler and other classes having
      the same name for consistency with other Web classes.
      
      This patch touches a lot of files, but the changes in those files are
      basically simple renames. No behavior change is expected.
      
      LocalFrame::FrameScheduler() was renamed to GetFrameScheduler() because
      of the name conflict.
      
      Bug: 825094
      Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
      Change-Id: I1c90ac0020c57382bbcb636ba58b9a0d6f1c849b
      Reviewed-on: https://chromium-review.googlesource.com/977246
      Commit-Queue: Yuta Kitamura <yutak@chromium.org>
      Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
      Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545758}
      0144aa84
    • Dominick Ng's avatar
      Implement the Touchable Chrome color spec for the location bar. · 3e44fc53
      Dominick Ng authored
      This CL applies the Touchable Chrome color spec for the location bar and
      omnibox drop down.
      
      The selected keyword icon was not updated to the Touchable Chrome
      version in a previous CL; that icon is also updated here along with its
      color.
      
      BUG=801583
      
      Change-Id: Ia8a6ab56ef02852d407a0dd1501f2d10422f9455
      Reviewed-on: https://chromium-review.googlesource.com/972702
      Commit-Queue: Dominick Ng <dominickn@chromium.org>
      Reviewed-by: default avatarScott Violet <sky@chromium.org>
      Reviewed-by: default avatarTrent Apted <tapted@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545757}
      3e44fc53
    • Hans Wennborg's avatar
      win_cross.md: Fix typo · f3adf863
      Hans Wennborg authored
      The script is called run-swarmed.py, not run_swarmed.py.
      
      TBR=thakis
      
      Bug: 495204
      Change-Id: I43953019fe4884fac9c7491e87845ef7476091fa
      Reviewed-on: https://chromium-review.googlesource.com/980053Reviewed-by: default avatarHans Wennborg <hans@chromium.org>
      Commit-Queue: Hans Wennborg <hans@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545756}
      f3adf863
    • Luciano Pacheco's avatar
      Remove Cache Storage API IPC messages · aadcbebe
      Luciano Pacheco authored
      content/common/cache_storage/cache_storage_messages.h has been converted
      to Mojo thus should be removed on crrev.com/c/612287
      
      Bug: 612287
      Change-Id: I88db5d0798891d218c5f1bfdd312a758a45152ff
      Reviewed-on: https://chromium-review.googlesource.com/907769
      Commit-Queue: Luciano Pacheco (SYD) <lucmult@chromium.org>
      Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
      Reviewed-by: default avatarChris Mumford <cmumford@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545755}
      aadcbebe
    • Tsuyoshi Horo's avatar
      Revert "Revert "Use DocumentThreadableLoader for sync loading from worker thread."" · 5e1b52dd
      Tsuyoshi Horo authored
      This reverts commit 35cc2b25 and
      removes "completed_event_->Signal()" from SyncLoadContext::OnReceivedRedirect().
      https://chromium-review.googlesource.com/c/chromium/src/+/657787/23/content/renderer/loader/sync_load_context.cc#81
      
      "completed_event_->Signal()" was called twice when SyncLoadContext receives
      a cross origin redirect response and caused crashes (crbug.com/797374).
      
      Bug: 706331, 797374
      Change-Id: I0562752b4be305a83ac4a0997c50687189d7f6cb
      
      Original change's description:
      > Revert "Use DocumentThreadableLoader for sync loading from worker thread."
      >
      > This reverts commit 86859669.
      >
      > Reason for revert: threading related crashes in sync XHR code
      >
      > Original change's description:
      > > Use DocumentThreadableLoader for sync loading from worker thread.
      > >
      > > This change makes the sync loading on worker thread off the main thread.
      > >
      > > I will create another CL to:
      > >  - Rename DocumentThreadableLoader.
      > >  - Remove WorkerThreadableLoader.
      > >
      > >
      > > Bug: 706331
      > > Change-Id: Ia625c667eb1367d44976478dd0272317b52e60ea
      > > Reviewed-on: https://chromium-review.googlesource.com/657787
      > > Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
      > > Reviewed-by: Kentaro Hara <haraken@chromium.org>
      > > Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
      > > Cr-Commit-Position: refs/heads/master@{#525696}
      >
      > TBR=horo@chromium.org,kinuko@chromium.org,haraken@chromium.org
      >
      > # Not skipping CQ checks because original CL landed > 1 day ago.
      >
      > Bug: 706331, 797374
      > Change-Id: Ibd2be711ed693084c45d45fda7c51a2d3170361a
      > Reviewed-on: https://chromium-review.googlesource.com/843145
      > Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
      > Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#526111}
      
      Change-Id: I0562752b4be305a83ac4a0997c50687189d7f6cb
      Reviewed-on: https://chromium-review.googlesource.com/974989
      Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
      Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
      Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545754}
      5e1b52dd
    • Max Morin's avatar
      Fix another three missing calls to ARS::Stop(). · 71e4caf1
      Max Morin authored
      It shouldn't be possible to have an infinite number of these bugs, so
      I'll just keep fixing them and hope the Clusterfuzz reports come to an
      end :).
      
      Bug: 825679
      Change-Id: I899c87b7849cdf7cefc50976b247bce4307b89d2
      Reviewed-on: https://chromium-review.googlesource.com/979801Reviewed-by: default avatarOlga Sharonova <olka@chromium.org>
      Commit-Queue: Max Morin <maxmorin@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545753}
      71e4caf1
    • Noel Gordon's avatar
      Fix script typo in create_test_main.py · 5a867e71
      Noel Gordon authored
      Bug: 813477
      Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
      Change-Id: Idaaf4fbc6d0217b5e0e817f8953095ae5d45e707
      Reviewed-on: https://chromium-review.googlesource.com/979744Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
      Commit-Queue: Noel Gordon <noel@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545752}
      5a867e71
    • Robin Raymond's avatar
      WinUWP store application support is out of date · c5686578
      Robin Raymond authored
      This is required to support building Microsoft's WinUWP store
      application version of WebRTC.
      
      vs_toolchain.py
      - needed to perform environment variable expansion for "Program
      Files(x86)" to correctly identify Visual Studio installation location
      
      config/BUILD.gn
      - remove delayimp.lib, kernel32.lib and ole32.lib from store
      applications (instead requires dloadhelper.lib/WindowsApp.lib
      must be used)
      
      BUILDCONFIG.gn
      - Do not use clang when compiling Windows UWP targets;
      - Added declare_args for is_target_winuwp rather and stripped multi
      defined variations of the host_os/current_os == "winrt_10", "winrt_81",
      "winrt_81_phone" that heavily polluted the platform / target selections
      (as the current targeting methodology is incorrect anyway). The
      host_os/current_os is always be "win" and only the target should be
      Windows UWP / store applications based on the target_os == "winuwp"
      rather than all the flavors of UWP.
      - Added filter for _winuwp source files (separate from just windows)
      - Added default configs for desktop vs store applications to correctly set
      the defines according to the desktop vs store targets
      
      config/win/BUILD.gn
      - The Windows UWP versioning assumes to be Windows 10 / store
      app now although a updated GN allows for targeting older Windows UWP
      versions/SDKs/device families. This allows the definitions for the
      various application support versioning and application families required
      for UWP to be set.
      - The linker calls vsvarsall.bat to be executed via
      toolchain/win/setup_toolchain.py in order to correctly identify the
      correct linker library path information for Windows store SDK targets.
      The hard coded and assumed library paths are fixed in all cases to be
      discovered from the tooling for forward future platform support in all
      cases.
      - Added ARM linkage definitions for the Windows ARM CPU required for
      properly targeting all three CPUs (x86, x64, arm) for universal store
      binaries.
      - Added the proper family C++/C defines required to target the various
      Windows store application types currently offered for Windows UWP store
      applications.
      
      toolchain/win/BUILD.gn
      - The name to support the storage of the environment variables now is
      passed into the setup script to allow for easier extension of the
      CPUs and target combinations (arm, x64, x86 in the desktop vs store
      variations)
      - "desktop" vs "store" is now specified the setup for the
      correct toolchain targeting
      - Sets true/false for is_target_winuwp is dependent on the toolchain
      activated (so configurations will be set correctly when the toolchain is
      specified for host tool targets required for build tools vs finalized
      application targets)
      - Cleaned up the Windows RT section to properly support Windows UWP
      toolchains
      
      toolchain/win/setup_toolchain.py
      - the setup was missing the arm CPU for universal binaries required for
      the UWP platform
      - The calling of vcvarsall.bat was missing the "store" option for store
      applications and all the CPU offered
      - Added returning of linker paths by searching the library environments
      for well-known library files expected in each of the 3 library paths
      required "lib", "um" and "atlmfc"
      
      R=phoglund@google.com
      
      Bug: 812814
      Change-Id: If1a6b1b1bc3ed940fc8e2ce726ac016e2491e61d
      Reviewed-on: https://chromium-review.googlesource.com/923161
      Commit-Queue: Patrik Höglund <phoglund@chromium.org>
      Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545751}
      c5686578
    • Chandan Padhi's avatar
      Add support for autoGainControl and noiseSuppression to getCapabilities() · 6520f685
      Chandan Padhi authored
      This CL adds support for autoGainControl and noiseSuppression properties
      to MediaStreamTrack.getCapabilities() and InputDeviceInfo.getCapabilities().
      
      Bug: 823831, 817769
      Change-Id: Ifdc0e560001e000b12c8d04634d3c52de0a34cc7
      Reviewed-on: https://chromium-review.googlesource.com/977251Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
      Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
      Commit-Queue: Chandan Padhi <c.padhi@samsung.com>
      Cr-Commit-Position: refs/heads/master@{#545750}
      6520f685
    • Andrey Kraynov's avatar
      Remove unused variable |feature_list| in ShellBrowserMainParts function · cfd0a831
      Andrey Kraynov authored
      Looks like that scoped FeatureList object doesn't affect
      ShellBrowserMainParts::SetupFieldTrials() execution and can be removed.
      
      Change-Id: If6c7b3433492ffdde1b1a44762bfed28f5e95824
      Reviewed-on: https://chromium-review.googlesource.com/978216Reviewed-by: default avatarJianpeng Chao <chaopeng@chromium.org>
      Reviewed-by: default avatarMike West <mkwst@chromium.org>
      Commit-Queue: Andrey Kraynov <iceman@yandex-team.ru>
      Cr-Commit-Position: refs/heads/master@{#545749}
      cfd0a831
    • Hiroki Nakagawa's avatar
      Worker: Allow dynamic import() on DedicatedWorkerGlobalScope · 80ffb027
      Hiroki Nakagawa authored
      This CL allows dynamic import() on DedicatedWorkerGlobalScope and adds WPT
      tests. Note that ES Modules on DedicatedWorker is an experimental feature behind
      the runtime flag.
      
      Design doc:
      https://docs.google.com/document/d/1IMGWAK7Wq37mLehwkbysNRBBnhQBo3z2MbYyMkViEnY/edit#heading=h.637avx8i5qtn
      
      Bug: 680046
      Change-Id: I1f8fed5c319aab634f96bcfabeb3c95f5dc7d9a7
      Reviewed-on: https://chromium-review.googlesource.com/970127
      Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
      Reviewed-by: default avatarKouhei Ueno <kouhei@chromium.org>
      Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
      Reviewed-by: default avatarMakoto Shimazu <shimazu@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545748}
      80ffb027
    • Marc Treib's avatar
      Sync cleanup: Remove a bunch of unused code and includes · 9ceadee1
      Marc Treib authored
      I was mostly looking for components/signin/-related things, but
      discovered a bunch more stuff along the way, mostly in
      ProfileSyncComponentsFactoryImpl.
      
      Bug: 825190
      Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
      Change-Id: I1b17d00db3cbefa50a7fabaf0b3e55e7ea567610
      Reviewed-on: https://chromium-review.googlesource.com/978211Reviewed-by: default avatarMikel Astiz <mastiz@chromium.org>
      Commit-Queue: Marc Treib <treib@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545747}
      9ceadee1
    • Zhuoyu Qian's avatar
      Introduce InsertCommands to split EditorCommand.cpp · 1b03f7f6
      Zhuoyu Qian authored
      This CL introduces "InsertCommands.h", move the declarations of some
      static functions related to insert commands to the header file. Make
      EditorCommand simpler for improving code health.
      
      Bug: 818552
      Signed-off-by: default avatarZhuoyu Qian <zhuoyu.qian@samsung.com>
      Change-Id: I4fc744dc58da885071760ba691baa03e8015d63c
      Reviewed-on: https://chromium-review.googlesource.com/977365Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545746}
      1b03f7f6
    • Sergei Datsenko's avatar
      Roll src/third_party/cros_system_api/ 72bfdd343..a0f6142f5 (3 commits) · 0d69f055
      Sergei Datsenko authored
      https://chromium.googlesource.com/chromiumos/platform/system_api.git/+log/72bfdd343136..a0f6142f5733
      
      $ git log 72bfdd343..a0f6142f5 --date=short --no-merges --format='%ad %ae %s'
      2018-03-20 dats Add constants for DriveFS D-Bus service.
      2018-03-15 emaxx cryptohome: Constants for challenge-response methods
      2018-03-15 ejcaruso cryptohome: remove MigrateToDircryptoEx constant
      
      Created with:
        roll-dep src/third_party/cros_system_api
      R=sammc@chromium.org
      
      Bug: 823603
      Change-Id: I718b17c6ddb00bdeca9a8fb11a097faaecb67500
      Reviewed-on: https://chromium-review.googlesource.com/979740Reviewed-by: default avatarSam McNally <sammc@chromium.org>
      Commit-Queue: Sergei Datsenko <dats@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545745}
      0d69f055
    • tzik's avatar
      Pass callbacks on AsyncFileUtil by value · 406c3253
      tzik authored
      This converts the type of callback parameters on AsyncFileUtil methods
      from const-ref to value, and adds std::move() around them for smaller
      number of copies.
      
      TBR=baileyberro@chromium.org
      
      Change-Id: I07ef5fa991bcfb2e0d07ef739b4ecad4c89c39ff
      Reviewed-on: https://chromium-review.googlesource.com/936345
      Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
      Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
      Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
      Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545744}
      406c3253
    • Kinuko Yasuda's avatar
      Rename URLLoaderRequestHandler to NavigationLoaderInterceptor · 7f3e1726
      Kinuko Yasuda authored
      From an offline conversation.
      
      Rationale: reflect the fact that this interface is:
      - somewhat specific to navigations
      - basically to intercept requests/responses
      
      We plan to define content::URLLoaderRequestInterceptor in
      //content/public separately, which only intercepts requests
      (and not necessarily specific to navigations)
      
      Note: This does NOT rename subclasses (e.g. FooRequestHandler).
      
      R=jam@chromium.org,jianli@chromium.org
      
      Change-Id: Ie6321d4e9ec8be626a505f242f3aace5d1c45eea
      Reviewed-on: https://chromium-review.googlesource.com/977642
      Commit-Queue: Kinuko Yasuda <kinuko@chromium.org>
      Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
      Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545743}
      7f3e1726
    • Balazs Engedy's avatar
      Rename VirtualU2fDevice -> VirtualFidoDevice. · 6627d311
      Balazs Engedy authored
      Rename the last holdout that is using the old name.
      
      Bug: 821215
      Change-Id: I45cafaab27f7ef42eaef748088910d8d28f5260c
      Reviewed-on: https://chromium-review.googlesource.com/979450Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
      Commit-Queue: Balazs Engedy <engedy@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545742}
      6627d311
    • Ben Wells's avatar
      Revert "RDH: Ensure there's at most one LoadInfoList in flight." · 472c6863
      Ben Wells authored
      This reverts commit d03adf5a.
      
      Reason for revert:
      
      This has caused some tests to fail flakily and reflect a crash that could happen in the wild. See http://crbug.com/825448
      
      Original change's description:
      > RDH:  Ensure there's at most one LoadInfoList in flight.
      > 
      > ResourceDispatcherHost pushes pending load state of all frames to the UI
      > thread once every 250 milliseconds when there's a pending load.  This
      > happens even when the UI thread is blocked.  Apparently it's causing an
      > OOM when the UI thread is blocked.  Whatever is blocking the UI thread
      > is another issue entirely, but we shouldn't use unbounded memory in the
      > browser process.  This CL prevents load state updates from being sent
      > until the previous set was ACKed by the UI thread.
      > 
      > Bug: 824869
      > TBR: jam@chromium.org
      > Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
      > Change-Id: I3b68522c5281d477d3a621ac02e5df1f75153d99
      > Reviewed-on: https://chromium-review.googlesource.com/978383
      > Commit-Queue: Matt Menke <mmenke@chromium.org>
      > Reviewed-by: John Abd-El-Malek <jam@chromium.org>
      > Reviewed-by: Charlie Harrison <csharrison@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#545616}
      
      TBR=jam@chromium.org,mmenke@chromium.org,csharrison@chromium.org
      
      # Not skipping CQ checks because original CL landed > 1 day ago.
      
      Bug: 824869
      Change-Id: I350dd7b357c32ffc7fb85a2417afaf779552ff77
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
      Reviewed-on: https://chromium-review.googlesource.com/979674Reviewed-by: default avatarBen Wells <benwells@chromium.org>
      Commit-Queue: Ben Wells <benwells@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545741}
      472c6863
    • Joel Hockey's avatar
      CrOS FileManager UMA ClickBreadCrumbs · 5be40566
      Joel Hockey authored
      Added ClickBreadcrumbs user action for click in breadcrumb.
      
      Fixed handling of MockFileSystem root to always include trailing slash.
      The root dir is referenced in the breadcrumb and causes errors
      in tests  with inconsistency of trailing slash.
      
      
      
      Bug: 824607
      Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
      Change-Id: I5ff72f4d2542c25f87fd495bdb088d0d3315424f
      Reviewed-on: https://chromium-review.googlesource.com/977381
      Commit-Queue: Joel Hockey <joelhockey@chromium.org>
      Reviewed-by: default avatarSasha Morrissey <sashab@chromium.org>
      Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
      Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545740}
      5be40566
    • Dominic Battre's avatar
      Disable flaky AccessibilityFullscreenBrowserTest.InsideIFrame · ebabf635
      Dominic Battre authored
      The test fails flakily on Linux, Windows and ChromeOS.
      See bug for details.
      
      TBR=foolip@chromium.org, dmazzoni@chromium.org
      
      Bug: 825735
      Change-Id: I5953f23c9c87e7b4ab2b0a6b9fd9d604a1bf27c3
      Reviewed-on: https://chromium-review.googlesource.com/979799Reviewed-by: default avatarDominic Battré <battre@chromium.org>
      Commit-Queue: Dominic Battré <battre@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545739}
      ebabf635
    • Tetsui Ohkubo's avatar
      Fix crash on notification settings by keyboard. · 26872015
      Tetsui Ohkubo authored
      When notification inline settings is opened from the top right gear icon
      using by keyboard, it crashed as animation requires the event to be
      LocatedEvent but it's not.
      
      TEST=manual
      BUG=823646
      
      Change-Id: Ia683de86e042f010ac4bb0ee645fff170547b9fa
      Reviewed-on: https://chromium-review.googlesource.com/974922
      Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org>
      Reviewed-by: default avatarYoshiki Iguchi <yoshiki@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545738}
      26872015
    • Blake O'Hare's avatar
      Random Cleanup: Floating keyboard dragging code · 5efc817a
      Blake O'Hare authored
      Was trying to fix something in this code for an unrelated bug and came
      across a few things that could be improved:
      * There were too many stateful booleans making the code unnecessarily
      complex.
      * The type of event that initialized the drag should be in the
      DragDescriptor, because it describes the drag and also has the same
      life cycle.
      * Flatten complicated if statements into chains of if/else's that only
      use simple conditions.
      * Use a switch statement for the event type.
      
      Change-Id: I74712df2502960c6a98be0a705a5ced94a61ec75
      Reviewed-on: https://chromium-review.googlesource.com/979378Reviewed-by: default avatarYuichiro Hanada <yhanada@chromium.org>
      Commit-Queue: Blake O'Hare <blakeo@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545737}
      5efc817a
    • Joel Hockey's avatar
      CrOS FileApp convert create_new_folder.js · a6d19f5c
      Joel Hockey authored
      Fix MockFileSystem to delete entries rather than nulling them.
      As null, the key is still iterable which causes errors.
      
      Make root path consistent to always have trailing slash which
      matches prod behaviour.
      
      Set default size/date metadata for MockDirectoryEntry.
      
      Put all test helper methods in 'test' namespace.
      
      Replace waitUntil with repeatUntil/pending from
      integration_tests/test_util.js which provides better error reporting.
      
      
      Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
      Change-Id: Ie648388a7d6fe6c79951d5b4330234c378ffe2ee
      Reviewed-on: https://chromium-review.googlesource.com/965722
      Commit-Queue: Joel Hockey <joelhockey@chromium.org>
      Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545736}
      a6d19f5c
    • Yoshifumi Inoue's avatar
      Record current behavior of NGInlineNode::CollectInlines() with inline-block and float · ec917131
      Yoshifumi Inoue authored
      This patch introduces tests for hanling of "inline-block" and "float" of
      |NGInlineNode::CollectInlines()| to avoid regression for improving code health.
      
      This patch is a preparation the patch[1].
      
      [1] http://crrev.com/c/737981 Simplify word granularity handling
      
      Bug: 778507
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
      Change-Id: Ifead65d6df83a19dbe2b82b509ef39427b56962c
      Reviewed-on: https://chromium-review.googlesource.com/979751
      Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
      Commit-Queue: Koji Ishii <kojii@chromium.org>
      Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545735}
      ec917131
    • Dominic Battre's avatar
      Label media/video-transformed.html as flaky · 062b4653
      Dominic Battre authored
      See bug for details.
      
      TBR=hubbe@chromium.org,dalecurtis@chromium.org
      notry=true
      
      Bug: 754986
      Change-Id: I33b05a30137c2c793d1704242dbb28d15c5aefe3
      Reviewed-on: https://chromium-review.googlesource.com/979800Reviewed-by: default avatarDominic Battré <battre@chromium.org>
      Commit-Queue: Dominic Battré <battre@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545734}
      062b4653
    • Yue Li's avatar
      Add platform network provider to assistant · 6a95bc93
      Yue Li authored
      Bug: 824566
      Test: Manual
      Change-Id: I58609375c31f9fc86e16ef2e214747ced8f24218
      Reviewed-on: https://chromium-review.googlesource.com/974572
      Commit-Queue: Yue Li <updowndota@chromium.org>
      Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545733}
      6a95bc93
    • Luciano Pacheco's avatar
      A11y fix for "Open With" dialog · eb94dea3
      Luciano Pacheco authored
      Accessibility fix for "Open With" dialog that wasn't being read by
      Chromevox.
      
      Change DefaultTaskDialog to set tabindex=-1 for dialog items, so they
      can be navigated via JS focus() method, but not via TAB key.
      
      Change cr.ui.List to issue an focus to the item when navigated via
      keyboard arrow up/down.
      
      Dialog items already have the correct text to be read, see bug for
      screenshot.
      
      Bug: 435010
      Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
      Change-Id: I2abc1d2d3d6cb6e78a373ccc51c79e34a0b756bd
      Reviewed-on: https://chromium-review.googlesource.com/968004Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
      Reviewed-by: default avatarSasha Morrissey <sashab@chromium.org>
      Commit-Queue: Luciano Pacheco (SYD) <lucmult@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545732}
      eb94dea3
    • Chandan Padhi's avatar
      Rectify comments in media_devices.mojom · f8e30387
      Chandan Padhi authored
      This CL is a follow-up on https://crrev.com/c/956383.
      
      Bug: 817769
      Change-Id: I83a87fc0ee5889e9efa2c6e7a86ae8f2c6c70b90
      Reviewed-on: https://chromium-review.googlesource.com/978225Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
      Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
      Commit-Queue: Chandan Padhi <c.padhi@samsung.com>
      Cr-Commit-Position: refs/heads/master@{#545731}
      f8e30387
    • Dominic Battre's avatar
      media/color-profile-video-seek-filter.html fails · 8ff82dc9
      Dominic Battre authored
      The media/color-profile-video-seek-filter.html fails flakily on Win7. See bug
      for details.
      
      notry=true
      TBR=chcunningham@chromium.org
      
      Bug: 825733
      Change-Id: I42edc7907e4de80e2201689796de4ff5d10ff487
      Reviewed-on: https://chromium-review.googlesource.com/979795Reviewed-by: default avatarDominic Battré <battre@chromium.org>
      Commit-Queue: Dominic Battré <battre@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545730}
      8ff82dc9
    • Darren Shen's avatar
      [css-typed-om] Fix crash for css-wide keywords in custom properties. · 91057d4c
      Darren Shen authored
      When converting CSSCustomPropertyDeclaration to CSSUnparsedValues, we
      used to assume that CSSCustomPropertyDeclaration will always have a
      CSSVariableData, but it turns out that css-wide keywords are stored
      as a CSSValueID instead of a CSSVariableData.
      
      This patch handles css-wide keywords on CSSUnparsedValues correctly.
      
      We added a unit test and not a WPT since this is likely a blink-only
      implementation detail.
      
      Bug: 824740
      Change-Id: Iefbdca4abc736562b81f5c6a3f0332975b842961
      Reviewed-on: https://chromium-review.googlesource.com/977141
      Commit-Queue: Darren Shen <shend@chromium.org>
      Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545729}
      91057d4c
    • Adam Rice's avatar
      Explicit WebSocket ownership in WebSocketManager · e6cb368b
      Adam Rice authored
      Previously network::WebSocket objects were stored as raw pointers
      in a set and deleted manually. Use a set<unique_ptr<WebSocket>,
      UniquePtrComparator> instead, making ownership explicit and reducing the
      risk of leaking.
      
      Change-Id: I0337551d8fd073341241723538cf9864eb206c87
      Reviewed-on: https://chromium-review.googlesource.com/978282Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
      Commit-Queue: Adam Rice <ricea@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545728}
      e6cb368b
    • Darren Shen's avatar
      Disable flaky BackgroundTest.ActiveDescendantUpdates test · 2a606682
      Darren Shen authored
      TBR=dmazzoni@chromium.org
      
      Bug: 825429
      Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
      Change-Id: I677963581b6594c014f05a717330f4b5f827a372
      Reviewed-on: https://chromium-review.googlesource.com/979745
      Commit-Queue: Darren Shen <shend@chromium.org>
      Reviewed-by: default avatarDarren Shen <shend@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545727}
      2a606682
    • Giovanni Ortuño Urquidi's avatar
      desktop-pwas: Block mixed content in Desktop PWAs · c8836696
      Giovanni Ortuño Urquidi authored
      Bug: 788251
      Change-Id: I328cb3c1c812fab565eafc4009e0210653e236c7
      Reviewed-on: https://chromium-review.googlesource.com/958768Reviewed-by: default avatarTrent Apted <tapted@chromium.org>
      Reviewed-by: default avatarMatt Giuca <mgiuca@chromium.org>
      Commit-Queue: Giovanni Ortuño Urquidi <ortuno@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545726}
      c8836696
    • Matt Falkenhagen's avatar
      Revert "Refactor BrowserThreadImpl, BrowserProcessSubThread, and BrowserMainLoop" · fa239c8c
      Matt Falkenhagen authored
      This reverts commit d260e9cf.
      
      Reason for revert: In Windows Canary versions since 67.0.3377.0, where this commit landed, IO thread hang reports have spiked dramatically. It is now the #1 browser crash report on Windows Canary at 33% of reports. I'm speculatively reverting this to see if the crash rate heals.
      
      Original change's description:
      > Refactor BrowserThreadImpl, BrowserProcessSubThread, and BrowserMainLoop
      >
      > This brings back the invariant that BrowserThread::IO isn't available
      > before BrowserMainLoop::CreateThreads(). This was broken to fix issue
      > 729596 to bring up the thread earlier for ServiceManager but it is
      > important that code that posts to BrowserThread::IO statically have an
      > happens-after relationship to BrowserMainLoop::CreateThreads(). Exposing
      > it statically earlier put that invariant at risk.
      >
      > Thankfully fixing issue 815225 resulted in finally reaching the long
      > sought goal of only having BrowserThread::UI/IO. Now that the IO thread
      > is also kicked off before it's named statically, BrowserThreadImpl no
      > longer needs to be a base::Thread, hence this refactoring.
      >
      > Before this CL:
      >  * BrowserThreadImpl was a base::Thread
      >    (could be a fake thread if SetMessageLoop was used)
      >  * BrowserProcessSubThread was a BrowserThreadImpl
      >    (performed a bit more initialization)
      >  * BrowserProcessSubThread was only used in production (in
      >    BrowserMainLoop)
      >  * BrowserThreadImpl was used for fake threads (BrowserMainLoop for
      >    BrowserThread::UI) and for testing (TestBrowserThread(Impl)).
      >  * BrowserThreadImpl overrode Init/Run/CleanUp() from base::Thread to
      >    perform some sanity checks as well as drive IOThread's Delegate (ref.
      >    BrowserThread::SetIOThreadDelegate())
      >  * BrowserProcessSubThread re-overrode Init/Run/CleanUp() to perform
      >    per-thread //content initialization (tests missed out on that per
      >    TestBrowserThread bypassing BrowserProcessSubThread by directly
      >    subclassing BrowserThreadImpl).
      >
      > With this CL:
      >  * BrowserThreadImpl is merely a scoped object that binds a provided
      >    SingleThreadTaskRunner to a BrowserThread::ID.
      >  * BrowserProcessSubThread is a base::Thread and performs all of the
      >    initialization and cleanup specific to //content (this means it now
      >    also manages BrowserThread::SetIOThreadDelegate())
      >  * BrowserProcessSubThread can be brought up early before being bound to
      >    a BrowserThread::ID (BrowserMainLoop handles that through
      >    BrowserProcessSubThread ::RegisterAsBrowserThread())
      >
      > Unfortunate exceptions required for this CL:
      >  * IOThread::Init() (invoked through BrowserThreadDelegate) perfoms
      >    blocking operations this was previously performed before installed
      >    the ThreadRestrictions on BrowserThread::IO. But now that //content
      >    is initialized after bringing up the thread, a
      >    base::ScopedAllowBlocking is required in scope of IOThread::Init().
      >  * TestBrowserThread previously bypassing BrowserProcessSubThread by
      >    directly subclassing BrowserThreadImpl meant it wasn't subject to
      >    ThreadRestrictions (unfortunate becomes it denies allowance
      >    verification to product code running in unit tests). Adding it back
      >    causes DCHECKs, as such
      >    BrowserProcessSubThread::AllowBlockingForTesting was added to allow
      >    this CL to pass CQ.
      >
      > Of note:
      >  * BrowserProcessSubThread is still written as though it supports many
      >    BrowserThread::IDs but in practice it's mostly always
      >    BrowserThread::IO (except in ThreadWatcherTest I think). This change
      >    was big enough that I didn't bother also breaking that
      >    generalization.
      >  * BrowserThreadImpl's constructor was made private to ensure only
      >    BrowserProcessSubThread and a few select callers get to drive it (to
      >    avoid previous missed initialization issues)
      >  * Atomics to manage BrowserThread::SetIOThreadDelegate were removed.
      >    Restriction was instead added that this only be called before
      >    initialization and after shutdown (this was already the case).
      >
      > Follow-ups to this CL:
      >  * //ios duplicates this logic and will need to undergo the same change
      >    as a follow-up
      >  * Fixing ios will allow removal of base::Thread::SetMessageLoop hack :)
      >  * Removing BrowserThreadGlobals::lock_ to address crbug.com/821034 will
      >    be much easier
      >  * BrowserThread post APIs should DCHECK rather than no-op if using a
      >    BrowserThread::ID before it's registered.
      >
      > Bug: 815225, 821034, 729596
      > Change-Id: If1038f23079df72203b1e95c7d26647f8824a726
      > Reviewed-on: https://chromium-review.googlesource.com/969104
      > Reviewed-by: John Abd-El-Malek <jam@chromium.org>
      > Commit-Queue: Gabriel Charette <gab@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#544440}
      
      TBR=gab@chromium.org,jam@chromium.org
      NOPRESUBMIT=true
      
      # Not skipping CQ checks because original CL landed > 1 day ago.
      # falken: Skipping presubmit to use deprecated ThreadResrictions::DisallowWaiting().
      
      Bug: 815225, 821034, 729596
      Change-Id: I2be97c5d8183497c005ab397c871f625b034d850
      Reviewed-on: https://chromium-review.googlesource.com/979752
      Commit-Queue: Matt Falkenhagen <falken@chromium.org>
      Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545725}
      fa239c8c
    • Khushal's avatar
      cc: Add some diagnostic CHECKs for sw image cache crashes. · fb48059c
      Khushal authored
      Change a few DCHECKs to CHECKs to validate if some crashes are
      resulting from using unlocked images, or incorrectly unlocking them
      earlier.
      
      R=enne@chromium.org, ericrk@chromium.org
      
      Bug: 802976
      Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
      Change-Id: Ibe0b9ef6ac52e6fafc9fd2670e20a9eefac17234
      Reviewed-on: https://chromium-review.googlesource.com/979160
      Commit-Queue: Khushal <khushalsagar@chromium.org>
      Reviewed-by: default avatarenne <enne@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545724}
      fb48059c
    • Chih-Yu Huang's avatar
      v4l2 vea: Correct the timing of sending "force key frame" signal. · b000535f
      Chih-Yu Huang authored
      Originally, the thread to update parameter
      "V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME" is different from QBUF the
      frame, so we cannot make sure the parameter is updated right before
      the key frame is QBUF. This CL queues the parameter |force_keyframe|
      with the frame, and update the parameter before QBUF the frame.
      
      BUG=b:74501913
      TEST=pass GTS RtcVideoCodecTest#testRequestSyncFrameH264
      
      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;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
      Change-Id: I1733f8ee474a0adeb8a31e6d196fdf27596a9f57
      Reviewed-on: https://chromium-review.googlesource.com/958791
      Commit-Queue: Chih-Yu Huang <akahuang@chromium.org>
      Reviewed-by: default avatarPawel Osciak <posciak@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545723}
      b000535f
    • Eugene But's avatar
      Add Download.IOSDownloadedFileNetError to New Download Manager. · f363f54c
      Eugene But authored
      This is an existing histogram logged for the Old Download Manager.
      The histogram is already a part of histograms.xml file.
      
      Bug: 791806
      Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
      Change-Id: I720221f6a5b395d947a96a99ce7e4d6fe7bee09e
      Reviewed-on: https://chromium-review.googlesource.com/979267Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
      Commit-Queue: Eugene But <eugenebut@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545722}
      f363f54c
    • Darren Shen's avatar
      [css-typed-om] Support font properties. · 077ec79c
      Darren Shen authored
      We try to support as many font properties as possible. However, several
      font properties have not been implemented in Blink yet. Also, the
      computed value for font-stretch is wrong (it should be as specified,
      and no rounding should occur).
      
      Spec: https://drafts.css-houdini.org/css-typed-om-1/#reify-stylevalue
      
      Bug: 820299
      Change-Id: I744d03a08856bd6d0df6bd07230ec80138e6e3b7
      Reviewed-on: https://chromium-review.googlesource.com/977247Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
      Commit-Queue: Darren Shen <shend@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545721}
      077ec79c
    • Daniel Bratell's avatar
      Gave two kBufferSize constants unique names. · aa60d106
      Daniel Bratell authored
      In some (extreme) jumbo configurations on Mac two kBufferSize
      constants ended up in the same translation unit and caused
      a compilation error. This patch gives them unique names to
      not cause any future problems.
      
      Change-Id: I96d5e51024ff99fcb838346726aa1635127841eb
      Reviewed-on: https://chromium-review.googlesource.com/978209
      Commit-Queue: Kent Tamura <tkent@chromium.org>
      Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#545720}
      aa60d106