1. 06 Jun, 2016 40 commits
    • mattreynolds's avatar
      Set User-Agent and Accept-Language request headers for PWS requests · 6bf0bb56
      mattreynolds authored
      The HTTP request headers normally used by Chrome for Android are
      generated in the native layer. We do not want to load native when the
      Physical Web is resolving URLs in the background, so we cannot access
      these values directly. Instead, they are reconstructed from values
      accessible from the Java layer.
      
      BUG=607660
      
      Review-Url: https://codereview.chromium.org/1989963003
      Cr-Commit-Position: refs/heads/master@{#398120}
      6bf0bb56
    • rajendrant's avatar
      Do not cancel precache periodic GCM task if current network is non-WiFi · 2fd4cfea
      rajendrant authored
      Only the network prediction enabled preference should be used to
      schedule or cancel periodic GCM task. The GCM task itself will run only
      when suitable for precaching.
      
      BUG=616956
      
      Review-Url: https://codereview.chromium.org/2037913002
      Cr-Commit-Position: refs/heads/master@{#398119}
      2fd4cfea
    • kylixrd's avatar
      Integrate new MD update menu icons. Initial cut. · de643dbf
      kylixrd authored
      BUG=584342
      
      Review-Url: https://codereview.chromium.org/1966643002
      Cr-Commit-Position: refs/heads/master@{#398118}
      de643dbf
    • mcasas's avatar
      Reland: ImageCapture: move mojom from WebKit/public to media/ · afcfc05a
      mcasas authored
      Reverted after its own LayoutTests timed out in WebKit Win7 bot.
      This is due to media/mojo/interfaces not being in the generated
      bindings path, and that's being addressed in
      https://codereview.chromium.org/2045573002/.
      
      Original landed as https://crrev.com/2027023002
      Original description ---------------------------------------------------
      ImageCapture: move mojom from WebKit/public to media/
      
      This CL moves image_capture.mojom from
      {third_party/WebKit/public/platform/modules => media/mojo/interfaces}
      so the generated data types (e.g. PhotoCapabilities{Ptr})
      can be used from both Blink and media/capture locations.
      
      Also capture.gypi is trivially relocated to capture/ folder.
      
      Note that gyp files are -yay!- close to being finally
      removed.
      
      BUG=518807
      CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel,mac_blink_rel,win_blink_rel
      
      TBR=rockot@chromium.org, avi@chromium.org, dcheng@chromium.org, haraken@chromium.org, xhwang@chromium.org  (no code changes).
      
      Review-Url: https://codereview.chromium.org/2040963004
      Cr-Commit-Position: refs/heads/master@{#398117}
      afcfc05a
    • gayane's avatar
      Modifications for recording whether UMA/Crash default state for iOS. · 06e66ef3
      gayane authored
      BUG=612828
      
      Review-Url: https://codereview.chromium.org/2014463003
      Cr-Commit-Position: refs/heads/master@{#398116}
      06e66ef3
    • wychen's avatar
      Record start up latency of DOM distiller viewer · b744ad3d
      wychen authored
      BUG=617701
      
      Review-Url: https://codereview.chromium.org/2011213002
      Cr-Commit-Position: refs/heads/master@{#398115}
      b744ad3d
    • dglazkov's avatar
      Remove unused forward decls from render_frame.h · 861acbc2
      dglazkov authored
      RenderFrame no longer knows about WebElement or WebNode, yay!
      
      R=esprehn
      BUG=
      
      Review-Url: https://codereview.chromium.org/2002683002
      Cr-Commit-Position: refs/heads/master@{#398114}
      861acbc2
    • stip's avatar
      Bump timeout for chrome_public_test_apk. · 0972583e
      stip authored
      BUG=589168
      
      Review-Url: https://codereview.chromium.org/2041973002
      Cr-Commit-Position: refs/heads/master@{#398113}
      0972583e
    • sebmarchand's avatar
      Shard content_browser to avoid MSVS 2 GB limitation. · c9dd766b
      sebmarchand authored
      A change to enable WPO for the x64 Win official builds caused
      content_browserto expand beyond 2 GB which caused these errors:
      
        obj\content\content_browser.lib : fatal error LNK1107: invalid or
        corrupt file: cannot read at 0xEAE7739
      
      msvs_shard is a way of breaking up a library to avoid this limitation.
      
      This issue doesn't affect the GN builds (because they use a sourceset
      concept instead of these huge static libraries).
      
      TBR=creis@chromium.org
      BUG=616946
      
      Review-Url: https://codereview.chromium.org/2046573003
      Cr-Commit-Position: refs/heads/master@{#398112}
      c9dd766b
    • thakis's avatar
      mac: Simplify sdk_forward_declarations.h · 9db1f947
      thakis authored
      MAC_OS_X_VERSION_MIN_REQUIRED corresponds to -mmacosx-version-min, which
      we currently set to 10.7 (and plan to set to 10.9 eventually, after fixing
      deprecation warnings).
      
      MAC_OS_X_VERSION_MAX_ALLOWED corresponds to the SDK used to compile
      chrome.  We currently require the 10.10 SDK.
      
      Remove all code in sdk_forward_declarations that's no longer necessary.
      No behavior change.
      
      BUG=579255
      
      Review-Url: https://codereview.chromium.org/2046693002
      Cr-Commit-Position: refs/heads/master@{#398111}
      9db1f947
    • pdr's avatar
      [spv2] Account for flipped writing modes in paint offset · 112a79c1
      pdr authored
      Flipped writing modes cause an object's offset to be flipped relative
      to its parent. This patch switches from using locationOffset to
      topLeftLocation which includes writing mode handling. This matches
      similar logic in PaintLayer::updateLayerPosition. A comment has been
      added about removing unnecessary craws back up the tree for calculating
      containing blocks.
      
      With this patch, all fast/block/positioning tests pass, modulo our lack
      of multicolumn fragment painting.
      
      BUG=614257
      
      Review-Url: https://codereview.chromium.org/2031873005
      Cr-Commit-Position: refs/heads/master@{#398110}
      112a79c1
    • juliatuttle's avatar
      DNS: Expose stale results through HostResolverImpl. · 9fb7aebf
      juliatuttle authored
      Once the HostCache exposes stale results, plumb them through the
      HostResolverImpl for callers who want them.
      
      BUG=605138
      
      Review-Url: https://codereview.chromium.org/1903263002
      Cr-Commit-Position: refs/heads/master@{#398109}
      9fb7aebf
    • fdoray's avatar
      Remove use of deprecated MessageLoop methods in mojo. · 76147bea
      fdoray authored
      MessageLoop::PostTask/PostDelayedTask/DeleteSoon/ReleaseSoon
      are deprecated. This CL makes the following replacements to
      remove some uses of these methods:
      
      "MessageLoop(ForUI|ForIO)::current()->PostTask" ->
        "ThreadTaskRunnerHandle::Get()->PostTask"
      "MessageLoop(ForUI|ForIO)::current()->PostDelayedTask" ->
        "ThreadTaskRunnerHandle::Get()->PostDelayedTask"
      "MessageLoop(ForUI|ForIO)::current()->DeleteSoon" ->
        "ThreadTaskRunnerHandle::Get()->DeleteSoon"
      "MessageLoop(ForUI|ForIO)::current()->ReleaseSoon" ->
        "ThreadTaskRunnerHandle::Get()->ReleaseSoon"
      
      In files where these replacements are made, it adds these includes:
        #include "base/location.h"
        #include "base/single_thread_task_runner.h"
        #include "base/threading/thread_task_runner_handle.h"
      
      And removes this include if it is no longer required:
        #include "base/message_loop/message_loop.h"
      
      Why ThreadTaskRunnerHandle::Get() instead of
      MessageLoop::current()->task_runner()?
       - The two are equivalent on threads that run a MessageLoop.
       - MessageLoop::current() doesn't work in base/task_scheduler
         because the scheduler's thread don't run MessageLoops.
         This CL will therefore facilitate the migration of browser
         threads to base/task_scheduler.
      
      Steps to generate this patch:
      1. Run message_loop_cleanup.py (see code on the bug).
      2. Run tools/sort-headers.py on modified files.
      3. Run git cl format.
      
      BUG=616447
      R=ben@chromium.org
      
      Review-Url: https://codereview.chromium.org/2029413004
      Cr-Commit-Position: refs/heads/master@{#398108}
      76147bea
    • moshayedi's avatar
      StructTraits to map mus::mojom::Event to unique_ptr<ui::Event>. · 73be633b
      moshayedi authored
      This CL defines StructTraits<mus::mojom::Event, unique_ptr<ui::Event>>. With
      this mojo automatically uses unique_ptr<ui::Event> instead of mus::mojom::Event
      when generating C++ header files for mojom interfaces, and events are
      automatically serializied/deserialized and validated when sending/receiving over
      mojo IPC.
      
      BUG=578206
      
      Review-Url: https://codereview.chromium.org/1939133002
      Cr-Commit-Position: refs/heads/master@{#398107}
      73be633b
    • Reilly Grant's avatar
      Add suppressions for Dr. Memory failures. · d88b1f23
      Reilly Grant authored
      BUG=617740
      TBR=miu@chromium.org,mcasas@chromium.org
      
      Review URL: https://codereview.chromium.org/2040963006 .
      
      Cr-Commit-Position: refs/heads/master@{#398106}
      d88b1f23
    • jamescook's avatar
      mash: Move WmShelfAura ownership to RootWindowController and init it earlier · be6ed82f
      jamescook authored
      This will allow it to be used in status tray initialization code. In particular:
      * It can wrap actions handled by ShelfWidget and ShelfLayoutManager
      (e.g. GetAutoHideState)
      * It can have observers similar to ShelfLayoutManagerObserver
      (OnAutoHideStateChanged)
      
      It's also more similar to how ash::mus::RootWindowController owns WmShelfMus.
      
      BUG=615155
      TEST=ash_unittests
      
      Review-Url: https://codereview.chromium.org/2041583004
      Cr-Commit-Position: refs/heads/master@{#398105}
      be6ed82f
    • kozyatinskiy's avatar
      [DevTools] Added missing inputs for protocol_version action · c63e9ac8
      kozyatinskiy authored
      R=pfeldman@chromium.org
      
      Review-Url: https://codereview.chromium.org/2044563002
      Cr-Commit-Position: refs/heads/master@{#398104}
      c63e9ac8
    • zmo's avatar
      Enable a few shader related webgl2 deqp tests. · c93df42b
      zmo authored
      BUG=
      TEST=gpu bots
      TBR=kbr@chromium.org
      NOTRY=true
      CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel
      
      Review-Url: https://codereview.chromium.org/2044593002
      Cr-Commit-Position: refs/heads/master@{#398103}
      c93df42b
    • mboc's avatar
      Support underline on Linux again. · fcf96463
      mboc authored
      BUG=617055
      
      https://codereview.chromium.org/1819753003/ accidentally removed
      UNDERLINE style support on Linux. This CL fixes the issue.
      
      Review-Url: https://codereview.chromium.org/2031223003
      Cr-Commit-Position: refs/heads/master@{#398102}
      fcf96463
    • Reilly Grant's avatar
      Disable flaky tests under Dr. Memory. · 2b2d8b40
      Reilly Grant authored
      VibrationTest.CancelVibrationFromMainFrameWhenMainFrameIsReloaded
      
      BUG=617727
      TBR=oshima@chromium.org
      
      Review URL: https://codereview.chromium.org/2047503002 .
      
      Cr-Commit-Position: refs/heads/master@{#398101}
      2b2d8b40
    • jaydasika's avatar
      cc : Add layer_list to LayerTreeImpl and build it for tests · 4340ea0b
      jaydasika authored
      Right now, we do a layer tree walk for iteration over all
      layers on impl-side (LayerListIterator). Once we start
      pushing layer list instead of layer tree during
      commit/activation, we will use layer_list instead(layers
      will be added to layer_list in stacking  order during
      commit/activation). A lot of tests build layer
      tree on the impl-side and don't go through
      commit/activation. So, we need to explicitly build the
      layer_list for these tests.
      
      BUG=617366
      CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
      
      Review-Url: https://codereview.chromium.org/2032303004
      Cr-Commit-Position: refs/heads/master@{#398100}
      4340ea0b
    • fdoray's avatar
      Remove use of deprecated MessageLoop methods in gpu. · 6a1f6d6f
      fdoray authored
      MessageLoop::PostTask/PostDelayedTask/DeleteSoon/ReleaseSoon
      are deprecated. This CL makes the following replacements to
      remove some uses of these methods:
      
      "MessageLoop(ForUI|ForIO)::current()->PostTask" ->
        "ThreadTaskRunnerHandle::Get()->PostTask"
      "MessageLoop(ForUI|ForIO)::current()->PostDelayedTask" ->
        "ThreadTaskRunnerHandle::Get()->PostDelayedTask"
      "MessageLoop(ForUI|ForIO)::current()->DeleteSoon" ->
        "ThreadTaskRunnerHandle::Get()->DeleteSoon"
      "MessageLoop(ForUI|ForIO)::current()->ReleaseSoon" ->
        "ThreadTaskRunnerHandle::Get()->ReleaseSoon"
      
      In files where these replacements are made, it adds these includes:
        #include "base/location.h"
        #include "base/single_thread_task_runner.h"
        #include "base/threading/thread_task_runner_handle.h"
      
      And removes this include if it is no longer required:
        #include "base/message_loop/message_loop.h"
      
      Why ThreadTaskRunnerHandle::Get() instead of
      MessageLoop::current()->task_runner()?
       - The two are equivalent on threads that run a MessageLoop.
       - MessageLoop::current() doesn't work in base/task_scheduler
         because the scheduler's thread don't run MessageLoops.
         This CL will therefore facilitate the migration of browser
         threads to base/task_scheduler.
      
      Steps to generate this patch:
      1. Run message_loop_cleanup.py (see code on the bug).
      2. Run tools/sort-headers.py on modified files.
      3. Run git cl format.
      
      BUG=616447
      R=piman@chromium.org
      CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel
      
      Review-Url: https://codereview.chromium.org/2035943002
      Cr-Commit-Position: refs/heads/master@{#398099}
      6a1f6d6f
    • pauljensen's avatar
      Rename NetworkChangeNotifierAutoDetect.Observer.updateActiveNetworkList · 446fc737
      pauljensen authored
      Rename it to purgeActiveNetworkList which better reflects its actual
      function.  It only purges the list of inactive networks, and does
      not add to the list.
      
      R=xunjieli
      
      Review-Url: https://codereview.chromium.org/1967373003
      Cr-Commit-Position: refs/heads/master@{#398098}
      446fc737
    • gogerald's avatar
      Surface sync error icon if sync is off may be unintentional · 93018d6d
      gogerald authored
      This CL is a strength of https://codereview.chromium.org/1952853005/.
      
      BUG=607695
      
      Review-Url: https://codereview.chromium.org/2032043002
      Cr-Commit-Position: refs/heads/master@{#398097}
      93018d6d
    • erikchen's avatar
      Revert of Re-enable WebGL Image Chromium. (patchset #3 id:40001 of... · 6a90cbb5
      erikchen authored
      Revert of Re-enable WebGL Image Chromium. (patchset #3 id:40001 of https://codereview.chromium.org/2025973002/ )
      
      Reason for revert:
      I'm observing a behavior difference between the Image CHROMIUM and non-Image CHROMIUM path. Turning off Image CHROMIUM while I investigate.
      https://bugs.chromium.org/p/chromium/issues/detail?id=617249#c5
      
      Original issue's description:
      > Re-enable WebGL Image Chromium.
      >
      > This CL makes DrawingBuffer use the newly added DescheduleUntilFinishedCHROMIUM,
      > and turns on IOSurface backed WebGL by default.
      >
      > BUG=581777
      >
      > Committed: https://crrev.com/801f15833c140f120a2f5baed88645cb0619ab86
      > Cr-Commit-Position: refs/heads/master@{#397603}
      
      TBR=kbr@chromium.org,avi@chromium.org
      # Not skipping CQ checks because original CL landed more than 1 days ago.
      BUG=581777
      
      Review-Url: https://codereview.chromium.org/2041053002
      Cr-Commit-Position: refs/heads/master@{#398096}
      6a90cbb5
    • wangxianzhu's avatar
      [SPv2] Paint invalidation in PreWalkTreeWalk, plumbed on PaintInvalidationState · 2e9667d6
      wangxianzhu authored
      It's temporarily plumbed on PaintInvalidationState to let it work for spv2.
      Will gradually switch to new code, using the paint property data collected
      by PaintPropertyTreeBuilder.
      
      Enable SlimmingPaintInvalidation by default when spv2 is enabled.
      
      BUG=510908
      
      Review-Url: https://codereview.chromium.org/2033183002
      Cr-Commit-Position: refs/heads/master@{#398095}
      2e9667d6
    • brettw's avatar
      Split RenderViewContextMenu code into functions · 49542531
      brettw authored
      This should be a behavior no-op. The nontrivial "is enabled" and "execute"
      commands are now split into helper functions using a consistent style. This
      helps make the multi-hundred-line-long switch statements more manageable.
      
      Review-Url: https://codereview.chromium.org/2035033003
      Cr-Commit-Position: refs/heads/master@{#398094}
      49542531
    • timav's avatar
      Ignore exceptions from MediaDrmBridge.closeSession() · 21981b31
      timav authored
      It seems some implementations thow an undocumented exception
      from MediaDrm.closeSession(). This CL catches and ignores all
      of them.
      
      BUG=611865
      
      Review-Url: https://codereview.chromium.org/2038193003
      Cr-Commit-Position: refs/heads/master@{#398093}
      21981b31
    • bcf's avatar
      net::WindowedFilterTest: Add explicit overflow checks · d66635d2
      bcf authored
      Aggressive inlining causes -Wstrict-overflow to be triggered.
      
      BUG=616957
      BUG=internal b/29059135
      
      Review-Url: https://codereview.chromium.org/2036613002
      Cr-Commit-Position: refs/heads/master@{#398092}
      d66635d2
    • ben's avatar
      Support link hovering. · fe1c233b
      ben authored
      R=sky@chromium.org
      
      Review-Url: https://codereview.chromium.org/2038143003
      Cr-Commit-Position: refs/heads/master@{#398091}
      fe1c233b
    • robhogan's avatar
      Get the correct number of pages to paint a fixed object on. · dc001257
      robhogan authored
      Fix off-by-one error in https://crrev.com/385513
      
      BUG=617553
      
      Review-Url: https://codereview.chromium.org/2040963002
      Cr-Commit-Position: refs/heads/master@{#398090}
      dc001257
    • dschuyler's avatar
      [MD settings] scroll to section find host · 5f6ada4b
      dschuyler authored
      This CL fixes an issue with the scroll to section not finding its host
      element. A unit test has also been added to detect the issue.
      
      BUG=616186
      CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
      
      Review-Url: https://codereview.chromium.org/2022893003
      Cr-Commit-Position: refs/heads/master@{#398089}
      5f6ada4b
    • fdoray's avatar
      Remove use of deprecated MessageLoop methods in extensions. · e6609ac8
      fdoray authored
      MessageLoop::PostTask/PostDelayedTask/DeleteSoon/ReleaseSoon
      are deprecated. This CL makes the following replacements to
      remove some uses of these methods:
      
      "MessageLoop(ForUI|ForIO)::current()->PostTask" ->
        "ThreadTaskRunnerHandle::Get()->PostTask"
      "MessageLoop(ForUI|ForIO)::current()->PostDelayedTask" ->
        "ThreadTaskRunnerHandle::Get()->PostDelayedTask"
      "MessageLoop(ForUI|ForIO)::current()->DeleteSoon" ->
        "ThreadTaskRunnerHandle::Get()->DeleteSoon"
      "MessageLoop(ForUI|ForIO)::current()->ReleaseSoon" ->
        "ThreadTaskRunnerHandle::Get()->ReleaseSoon"
      
      In files where these replacements are made, it adds these includes:
        #include "base/location.h"
        #include "base/single_thread_task_runner.h"
        #include "base/threading/thread_task_runner_handle.h"
      
      And removes this include if it is no longer required:
        #include "base/message_loop/message_loop.h"
      
      Why ThreadTaskRunnerHandle::Get() instead of
      MessageLoop::current()->task_runner()?
       - The two are equivalent on threads that run a MessageLoop.
       - MessageLoop::current() doesn't work in base/task_scheduler
         because the scheduler's thread don't run MessageLoops.
         This CL will therefore facilitate the migration of browser
         threads to base/task_scheduler.
      
      Steps to generate this patch:
      1. Run message_loop_cleanup.py (see code on the bug).
      2. Run tools/sort-headers.py on modified files.
      3. Run git cl format.
      
      BUG=616447
      R=reillyg@chromium.org
      
      Review-Url: https://codereview.chromium.org/2036863002
      Cr-Commit-Position: refs/heads/master@{#398088}
      e6609ac8
    • brucedawson's avatar
      Adding missing manifests to gn-built executables · b3549d99
      brucedawson authored
      Many executables are missing embedded manifest files when built with gn.
      This causes OS compatibility information to be omitted which can lead
      to strange behavior. This adds manifests to two executables.
      
      TBR=reed@google.com
      BUG=602505
      
      Review-Url: https://codereview.chromium.org/2021113003
      Cr-Commit-Position: refs/heads/master@{#398087}
      b3549d99
    • pfeldman's avatar
      DevTools: restore protocol OWNERS restriction. · f02f735e
      pfeldman authored
      TBR=dgozman
      
      Review-Url: https://codereview.chromium.org/2038363003
      Cr-Commit-Position: refs/heads/master@{#398086}
      f02f735e
    • yuweih's avatar
      [Remoting Android] Releases |secret_fetcher_| in DisconnectFromHost() · 909aa6b2
      yuweih authored
      In some situations the same JniClient will be used for multiple connections
      where ConnectToHost()->DisconnectFromHost()->ConnectToHost() will be called.
      
      In ConnectToHost() we DCHECK !secret_fetcher_ but don't release it in
      DisconnectFromHost(), which fails the DCHECK.
      
      This CL solves this problem by resetting |secret_fetcher_| in
      DisconnectFromHost(). However, we still need to investigate why JniClient
      is being used for multiple connections.
      
      BUG=617471
      
      Review-Url: https://codereview.chromium.org/2046663002
      Cr-Commit-Position: refs/heads/master@{#398085}
      909aa6b2
    • primiano's avatar
      Revert of In official builds, let CHECK(false) crash instead of calling... · 6ff194f5
      primiano authored
      Revert of In official builds, let CHECK(false) crash instead of calling BreakDebugger. (patchset #2 id:20001 of https://codereview.chromium.org/1982123002/ )
      
      Reason for revert:
      Unfortunately crrev.com/1982123002 causes loss of
      crash reports on Android arm64 (and supposedly also CrOS).
      This is because __builtin_trap() raises a SIGILL on x86 and
      arm but SIGTRAP on arm64. Breakpad does not handle SIGTRAP (yet).
      Temporarily reverting this CL until SIGTRAP support for breakpad lands.
      
      BUG=599867,614865
      
      Original issue's description:
      > In official builds, let CHECK(false) crash instead of calling BreakDebugger.
      >
      > This should save some binary size and make things a bit faster, without ill
      > effects.
      >
      > See bug comment 15, and brettw's and my comments on
      > "[blink-dev] Update of wtf/Assertions.h, and ASSERT macros deprecation"
      >
      > BUG=599867
      >
      > Committed: https://crrev.com/481a8ec8b24df24795c63fd4ec26f3670d516db8
      > Cr-Commit-Position: refs/heads/master@{#394035}
      
      TBR=danakj@chromium.org,thakis@chromium.org
      # Not skipping CQ checks because original CL landed more than 1 days ago.
      BUG=599867
      
      Review-Url: https://codereview.chromium.org/2046593002
      Cr-Commit-Position: refs/heads/master@{#398084}
      6ff194f5
    • timav's avatar
      Fix initialization of AudioTrack related output parameters · 42e063e4
      timav authored
      Since AudioCodecBridge::ConfigureAndStart creates AudioTrack
      instance with config parameters, we need to initialize the
      output parameters with the same values before we get
      OnOutputFormatChanged().
      
      Without this step the some changes between config and actual
      parameters will be undetected, for instance before this change
      (1) config_num_channels = 2, output_num_channels = 2
            old output value was 0, unnecessary AudioTrack recreation
      (2) config_num_channels = 1, output_num_channels = 2
            old output value was 2, no change detected here but
            AudioTrack was created with num_channels = 1
      
      BUG=none
      
      Review-Url: https://codereview.chromium.org/2042563002
      Cr-Commit-Position: refs/heads/master@{#398083}
      42e063e4
    • fdoray's avatar
      Remove use of deprecated MessageLoop methods in sync. · f7dac376
      fdoray authored
      MessageLoop::PostTask/PostDelayedTask/DeleteSoon/ReleaseSoon
      are deprecated. This CL makes the following replacements to
      remove some uses of these methods:
      
      "MessageLoop(ForUI|ForIO)::current()->PostTask" ->
        "ThreadTaskRunnerHandle::Get()->PostTask"
      "MessageLoop(ForUI|ForIO)::current()->PostDelayedTask" ->
        "ThreadTaskRunnerHandle::Get()->PostDelayedTask"
      "MessageLoop(ForUI|ForIO)::current()->DeleteSoon" ->
        "ThreadTaskRunnerHandle::Get()->DeleteSoon"
      "MessageLoop(ForUI|ForIO)::current()->ReleaseSoon" ->
        "ThreadTaskRunnerHandle::Get()->ReleaseSoon"
      
      In files where these replacements are made, it adds these includes:
        #include "base/location.h"
        #include "base/single_thread_task_runner.h"
        #include "base/threading/thread_task_runner_handle.h"
      
      And removes this include if it is no longer required:
        #include "base/message_loop/message_loop.h"
      
      Why ThreadTaskRunnerHandle::Get() instead of
      MessageLoop::current()->task_runner()?
       - The two are equivalent on threads that run a MessageLoop.
       - MessageLoop::current() doesn't work in base/task_scheduler
         because the scheduler's thread don't run MessageLoops.
         This CL will therefore facilitate the migration of browser
         threads to base/task_scheduler.
      
      Steps to generate this patch:
      1. Run message_loop_cleanup.py (see code on the bug).
      2. Run tools/sort-headers.py on modified files.
      3. Run git cl format.
      
      BUG=616447
      R=maxbogue@chromium.org
      
      Review-Url: https://codereview.chromium.org/2033933002
      Cr-Commit-Position: refs/heads/master@{#398082}
      f7dac376
    • robhogan's avatar
      Mark container chain of out-of-flow objects for layout correctly. · ccffaf61
      robhogan authored
      This was an error in the refactoring at https://codereview.chromium.org/1323313004.
      
      BUG=615056
      
      Review-Url: https://codereview.chromium.org/2042623002
      Cr-Commit-Position: refs/heads/master@{#398081}
      ccffaf61