| commit | 72ca3c49de8b10e738f1afd18e8c3cd30e5b4b1e | [log] [tgz] |
|---|---|---|
| author | Tom Anderson <thomasanderson@chromium.org> | Mon Mar 11 19:39:32 2019 |
| committer | Commit Bot <commit-bot@chromium.org> | Mon Mar 11 19:39:32 2019 |
| tree | a3dd4a9a47cadaf4a256f0b4666eba5ec24fa82e | |
| parent | 4d9dce6169d8c705cf16a9ad575a80da79c423ca [diff] |
Use const& iterators when sorting
This fixes the build with _LIBCPP_DEBUG=0. Build error:
FAILED: obj/chrome/test/unit_tests/notification_permission_context_unittest.o
In file included from ../../chrome/browser/notifications/notification_permission_context_unittest.cc:5:
In file included from ../../chrome/browser/notifications/notification_permission_context.h:9:
In file included from ../../chrome/browser/permissions/permission_context_base.h:9:
In file included from ../../buildtools/third_party/libc++/trunk/include/unordered_map:407:
In file included from ../../buildtools/third_party/libc++/trunk/include/__hash_table:17:
../../buildtools/third_party/libc++/trunk/include/algorithm:789:20: error: no matching function for call to object of type '(lambda at ../../chrome/browser/notifications/notification_permission_context_unittest.cc:478:7)'
bool __r = __comp_(__x, __y);
BUG=923166
R=peter@chromium.org
Change-Id: Ia4131b60f1565fcf7a352dd2520ae455a313ceb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1512538
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#639596}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 .