commit | 1542245879b922323de4fdf1c2a77440dbcfab94 | [log] [tgz] |
---|---|---|
author | Daniel Bratell <bratell@opera.com> | Thu Feb 01 22:46:48 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Feb 01 22:46:48 2018 |
tree | 02aaaa52c8392eb4b0dd0936d38bcb183c8ffc06 | |
parent | 10c92aea9719dadd903c0540968844bd36f103f4 [diff] |
Use the right ref count macros for base::Bind call chrome/browser/android/cdm/media_drm_credential_manager.cc sent a g_browser_process->system_request_context() into a Bind call without using any ref counting macros. That is prohibited by the bind system but the code got away with it when the pointer was just forward declared so that Bind didn't know that it was a ref counted type. In jumbo builds the compiler knew more about the return type of g_browser_process->system_request_context() and failed to compile because of static_asserts in bind_internal.h. This patch adds base::Unretained() since that seems to be the right macro for this type of value. Bug: 746957 Change-Id: Idfc3ad9bd6708dbc5ef4f295397d05d961595b4a Reviewed-on: https://chromium-review.googlesource.com/897535 Reviewed-by: Chrome Cunningham <chcunningham@chromium.org> Reviewed-by: Xiaohan Wang <xhwang@chromium.org> Commit-Queue: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#533839}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .