Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3122)

Unified Diff: chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc

Issue 2646863002: Fix unused lambda captures in //chrome, //services/ui and //ui. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc
diff --git a/chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc b/chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc
index 3098f90db4b1334e45771acdef96e2ef4b1b766c..e36055277921e7499c1e5a35718c4be4bd4c7531 100644
--- a/chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc
+++ b/chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc
@@ -626,7 +626,7 @@ TEST_F(MediaRouterMojoImplTest, DetachRoute) {
TEST_F(MediaRouterMojoImplTest, TerminateRoute) {
base::RunLoop run_loop;
EXPECT_CALL(mock_media_route_provider_, TerminateRoute(kRouteId, _))
- .WillOnce(Invoke([&run_loop](
+ .WillOnce(Invoke([](
const std::string& route_id,
const mojom::MediaRouteProvider::TerminateRouteCallback& cb) {
cb.Run(base::nullopt, mojom::RouteRequestResultCode::OK);
@@ -641,7 +641,7 @@ TEST_F(MediaRouterMojoImplTest, TerminateRoute) {
TEST_F(MediaRouterMojoImplTest, TerminateRouteFails) {
base::RunLoop run_loop;
EXPECT_CALL(mock_media_route_provider_, TerminateRoute(kRouteId, _))
- .WillOnce(Invoke([&run_loop](
+ .WillOnce(Invoke([](
const std::string& route_id,
const mojom::MediaRouteProvider::TerminateRouteCallback& cb) {
cb.Run(std::string("timed out"),
« no previous file with comments | « chrome/browser/extensions/api/gcd_private/privet_v3_session_unittest.cc ('k') | services/ui/ws/user_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698